(year, month)
| 15575 | } |
| 15576 | |
| 15577 | function daysInMonth(year, month) { |
| 15578 | if (isNaN(year) || isNaN(month)) { |
| 15579 | return NaN; |
| 15580 | } |
| 15581 | var modMonth = mod(month, 12); |
| 15582 | year += (month - modMonth) / 12; |
| 15583 | return modMonth === 1 ? (isLeapYear(year) ? 29 : 28) : (31 - modMonth % 7 % 2); |
| 15584 | } |
| 15585 | |
| 15586 | // FORMATTING |
| 15587 |
no test coverage detected