(input)
| 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), |
no test coverage detected