IsLeapYear
IsLeapYear 添加 .isLeapYear API 以返回 boolean 指示 Dayjs 的年份是否为闰年。
¥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");
// import isLeapYear from 'dayjs/plugin/isLeapYear' // ES 2015
dayjs.extend(isLeapYear);
dayjs("2000-01-01").isLeapYear(); // true
