Get the number of days for each month in a given year. Honors leap year.
$ npm install --save month-days-by-year
const monthDaysByYear = require('month-days-by-year');
monthDaysByYear(2017);
//=> [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
leapYear(2000);
//=> [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
Type: string
| number
The year from which you want a list of months.
MIT © Michael Wuergler