IsLeapYear
Plugin IsLeapYear dodaje metodę .isLeapYear(), która zwraca true, jeśli rok w obiekcie Dayjs jest przestępny.
javascript
var isLeapYear = require('dayjs/plugin/isLeapYear');
// import isLeapYear from 'dayjs/plugin/isLeapYear' // ES 2015
dayjs.extend(isLeapYear);
dayjs('2000-01-01').isLeapYear(); // true