(input, locale)
| 1498 | // HELPERS |
| 1499 | |
| 1500 | function parseWeekday(input, locale) { |
| 1501 | if (typeof input !== 'string') { |
| 1502 | return input; |
| 1503 | } |
| 1504 | |
| 1505 | if (!isNaN(input)) { |
| 1506 | return parseInt(input, 10); |
| 1507 | } |
| 1508 | |
| 1509 | input = locale.weekdaysParse(input); |
| 1510 | if (typeof input === 'number') { |
| 1511 | return input; |
| 1512 | } |
| 1513 | |
| 1514 | return null; |
| 1515 | } |
| 1516 | |
| 1517 | function parseIsoWeekday(input, locale) { |
| 1518 | if (typeof input === 'string') { |