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

Function isMomentInput

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

Source from the content-addressed store, hash-verified

3619
3620 // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined
3621 function isMomentInput(input) {
3622 return (
3623 isMoment(input) ||
3624 isDate(input) ||
3625 isString(input) ||
3626 isNumber(input) ||
3627 isNumberOrStringArray(input) ||
3628 isMomentInputObject(input) ||
3629 input === null ||
3630 input === undefined
3631 );
3632 }
3633
3634 function isMomentInputObject(input) {
3635 var objectTest = isObject(input) && !isObjectEmpty(input),

Callers 1

calendar$1Function · 0.85

Calls 6

isMomentFunction · 0.85
isDateFunction · 0.85
isStringFunction · 0.85
isNumberFunction · 0.85
isNumberOrStringArrayFunction · 0.85
isMomentInputObjectFunction · 0.85

Tested by

no test coverage detected