isLeapYear
Determines if a given date is a leap year.
const leapYear = isLeapYear(2000); // true
Content copied to clipboard
Return
True if year
is a leap year.
Parameters
year
The year to be tested.
Determines if a given date is a leap year.
const leapYear = isLeapYear(2000); // true
True if year
is a leap year.
The year to be tested.