(year, month)
| 886 | } |
| 887 | |
| 888 | function daysInMonth(year, month) { |
| 889 | if (isNaN(year) || isNaN(month)) { |
| 890 | return NaN; |
| 891 | } |
| 892 | var modMonth = mod(month, 12); |
| 893 | year += (month - modMonth) / 12; |
| 894 | return modMonth === 1 |
| 895 | ? isLeapYear(year) |
| 896 | ? 29 |
| 897 | : 28 |
| 898 | : 31 - ((modMonth % 7) % 2); |
| 899 | } |
| 900 | |
| 901 | // FORMATTING |
| 902 |
no test coverage detected