(year: number)
| 543 | const monthLengths = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] |
| 544 | |
| 545 | const isLeapYear = (year: number): boolean => (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0 |
| 546 | |
| 547 | /** The two-digit number at `at`, or `-1` when those characters are not digits. */ |
| 548 | const twoDigitsAt = (text: string, at: number): number => { |