MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / parseWeekday

Function parseWeekday

tests/test_code/js/moment/moment.js:1500–1515  ·  view source on GitHub ↗
(input, locale)

Source from the content-addressed store, hash-verified

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') {

Callers 1

getSetDayOfWeekFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected