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

Function localeMonths

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

Source from the content-addressed store, hash-verified

958 defaultMonthsRegex = matchWord;
959
960 function localeMonths(m, format) {
961 if (!m) {
962 return isArray(this._months)
963 ? this._months
964 : this._months['standalone'];
965 }
966 return isArray(this._months)
967 ? this._months[m.month()]
968 : this._months[
969 (this._months.isFormat || MONTHS_IN_FORMAT).test(format)
970 ? 'format'
971 : 'standalone'
972 ][m.month()];
973 }
974
975 function localeMonthsShort(m, format) {
976 if (!m) {

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.85
testMethod · 0.80

Tested by

no test coverage detected