Check if a year is a leap year
$ npm install --save leap-year
var leapYear = require('leap-year');
leapYear(2014);
//=> false
leapYear(2016);
//=> true
Type: number
Default: current year
Type: date
Default: new Date()
MIT © Sindre Sorhus
Check if a year is a leap year
$ npm install --save leap-year
var leapYear = require('leap-year');
leapYear(2014);
//=> false
leapYear(2016);
//=> true
Type: number
Default: current year
Type: date
Default: new Date()
MIT © Sindre Sorhus