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

Function localeWeekdays

tests/test_code/js/moment/moment.js:1538–1551  ·  view source on GitHub ↗
(m, format)

Source from the content-addressed store, hash-verified

1536 defaultWeekdaysMinRegex = matchWord;
1537
1538 function localeWeekdays(m, format) {
1539 var weekdays = isArray(this._weekdays)
1540 ? this._weekdays
1541 : this._weekdays[
1542 m && m !== true && this._weekdays.isFormat.test(format)
1543 ? 'format'
1544 : 'standalone'
1545 ];
1546 return m === true
1547 ? shiftWeekdays(weekdays, this._week.dow)
1548 : m
1549 ? weekdays[m.day()]
1550 : weekdays;
1551 }
1552
1553 function localeWeekdaysShort(m) {
1554 return m === true

Callers

nothing calls this directly

Calls 3

isArrayFunction · 0.85
shiftWeekdaysFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected