MCPcopy
hub / github.com/tdewolff/minify / parseWeekday

Function parseWeekday

_benchmarks/sample_moment.js:1573–1588  ·  view source on GitHub ↗
(input, locale)

Source from the content-addressed store, hash-verified

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

Callers 1

getSetDayOfWeekFunction · 0.70

Calls 1

isNaNFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…