/
githubmirror
/
dayjs
Обзор
Документация
Войти
/
githubmirror
/
dayjs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
src/plugin/isLeapYear/index.js
6 строк
180 B
iamkun
refactor: isLeapYear as plugin
06 июн 2018, 10:27
06 июн 2018, 10:27
56f324f
Код
Авторство
О чём код?
export default (o, c) => { const proto = c.prototype proto.isLeapYear = function () { return ((this.$y % 4 === 0) && (this.$y % 100 !== 0)) || (this.$y % 400 === 0) } }