(value: number | null | undefined)
| 63 | } |
| 64 | |
| 65 | function nonNegative(value: number | null | undefined): number { |
| 66 | return Number.isFinite(value) && value !== null && value !== undefined ? Math.max(0, value) : 0 |
| 67 | } |
| 68 | |
| 69 | function parseMonthIndex(month: string): number | null { |
| 70 | const match = /^(\d{4})-(\d{2})$/.exec(month) |
no outgoing calls
no test coverage detected