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

Function isNumberOrStringArray

tests/test_code/js/moment/moment.js:3674–3684  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3672 }
3673
3674 function isNumberOrStringArray(input) {
3675 var arrayTest = isArray(input),
3676 dataTypeTest = false;
3677 if (arrayTest) {
3678 dataTypeTest =
3679 input.filter(function (item) {
3680 return !isNumber(item) && isString(input);
3681 }).length === 0;
3682 }
3683 return arrayTest && dataTypeTest;
3684 }
3685
3686 function isCalendarSpec(input) {
3687 var objectTest = isObject(input) && !isObjectEmpty(input),

Callers 1

isMomentInputFunction · 0.85

Calls 3

isArrayFunction · 0.85
isNumberFunction · 0.85
isStringFunction · 0.85

Tested by

no test coverage detected