(year: number, month: number)
| 16 | } |
| 17 | |
| 18 | export function daysInMonth(year: number, month: number): number { |
| 19 | return new Date(Date.UTC(year, month + 1, 0)).getUTCDate() |
| 20 | } |
| 21 | |
| 22 | export function daysInYear(year: number): number { |
| 23 | return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0) ? 366 : 365 |
no outgoing calls
no test coverage detected