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

Function listMonthsImpl

tests/test_code/js/moment/moment.js:5039–5057  ·  view source on GitHub ↗
(format, index, field)

Source from the content-addressed store, hash-verified

5037 }
5038
5039 function listMonthsImpl(format, index, field) {
5040 if (isNumber(format)) {
5041 index = format;
5042 format = undefined;
5043 }
5044
5045 format = format || '';
5046
5047 if (index != null) {
5048 return get$1(format, index, field, 'month');
5049 }
5050
5051 var i,
5052 out = [];
5053 for (i = 0; i < 12; i++) {
5054 out[i] = get$1(format, i, field, 'month');
5055 }
5056 return out;
5057 }
5058
5059 // ()
5060 // (5)

Callers 2

listMonthsFunction · 0.85
listMonthsShortFunction · 0.85

Calls 2

isNumberFunction · 0.85
get$1Function · 0.85

Tested by

no test coverage detected