UNPKG

is-leap-year

Version:

check if the given year is a leap year

29 lines (14 loc) 441 B
# is-leap-year check if the given year is a leap year ## Installation Install with [component(1)](http://component.io): $ component install stephenmathieson/is-leap-year Install with [npm](https://npmjs.org/): $ npm install is-leap-year ## API ### `isLeapYear(Date)` Check if the year of the given `Date` is is a leap year ### `isLeapYear(year)` Check if the given year (`Number`) is a leap year ## License MIT