IsLeapYear
IsLeapYear adds .isLeapYear
API to returns a boolean
indicating whether the Dayjs
's year is a leap year or not.
var isLeapYear = require('dayjs/plugin/isLeapYear')
dayjs.extend(isLeapYear)
dayjs('2000-01-01').isLeapYear() // true
IsLeapYear adds .isLeapYear
API to returns a boolean
indicating whether the Dayjs
's year is a leap year or not.
var isLeapYear = require('dayjs/plugin/isLeapYear')
dayjs.extend(isLeapYear)
dayjs('2000-01-01').isLeapYear() // true