(input, locale)
| 1571 | // HELPERS |
| 1572 | |
| 1573 | function parseWeekday(input, locale) { |
| 1574 | if (typeof input !== 'string') { |
| 1575 | return input; |
| 1576 | } |
| 1577 | |
| 1578 | if (!isNaN(input)) { |
| 1579 | return parseInt(input, 10); |
| 1580 | } |
| 1581 | |
| 1582 | input = locale.weekdaysParse(input); |
| 1583 | if (typeof input === 'number') { |
| 1584 | return input; |
| 1585 | } |
| 1586 | |
| 1587 | return null; |
| 1588 | } |
| 1589 | |
| 1590 | function parseIsoWeekday(input, locale) { |
| 1591 | if (typeof input === 'string') { |
no test coverage detected
searching dependent graphs…