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

Function isNumberOrStringArray

_benchmarks/sample_moment.js:3756–3766  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

3754 }
3755
3756 function isNumberOrStringArray(input) {
3757 var arrayTest = isArray(input),
3758 dataTypeTest = false;
3759 if (arrayTest) {
3760 dataTypeTest =
3761 input.filter(function (item) {
3762 return !isNumber(item) && isString(input);
3763 }).length === 0;
3764 }
3765 return arrayTest && dataTypeTest;
3766 }
3767
3768 function isCalendarSpec(input) {
3769 var objectTest = isObject(input) && !isObjectEmpty(input),

Callers 1

isMomentInputFunction · 0.85

Calls 3

isArrayFunction · 0.70
isNumberFunction · 0.70
isStringFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…