Returns whether the date or year is a leap year
Optional
the date or year to check
whether the date or year is a leap year
isLeapYear(2000); // trueisLeapYear(new Date(2000, 0, 1)); // true Copy
isLeapYear(2000); // trueisLeapYear(new Date(2000, 0, 1)); // true
Returns whether the date or year is a leap year