(year, month)
| 1053 | } |
| 1054 | |
| 1055 | function daysInMonth(year, month) { |
| 1056 | if (isNaN(year) || isNaN(month)) { |
| 1057 | return NaN; |
| 1058 | } |
| 1059 | var modMonth = mod(month, 12); |
| 1060 | year += (month - modMonth) / 12; |
| 1061 | return modMonth === 1 |
| 1062 | ? isLeapYear(year) |
| 1063 | ? 29 |
| 1064 | : 28 |
| 1065 | : 31 - ((modMonth % 7) % 2); |
| 1066 | } |
| 1067 | |
| 1068 | // FORMATTING |
| 1069 |
no test coverage detected
searching dependent graphs…