IsLeapYear
IsLeapYear přidává API .isLeapYear(), které vrací boolean hodnotu, určující, zda je rok instance Dayjs přestupný.
javascript
var isLeapYear = require('dayjs/plugin/isLeapYear');
// import isLeapYear from 'dayjs/plugin/isLeapYear' // ES 2015
dayjs.extend(isLeapYear);
dayjs('2000-01-01').isLeapYear(); // true