|
|
|
@ -11,7 +11,7 @@ import moment from 'moment'
|
|
|
|
|
import { setTimeout } from 'timers'
|
|
|
|
|
function isMoment (value) {
|
|
|
|
|
if (Array.isArray(value)) {
|
|
|
|
|
return value.length === 0 || !!value.find((val) => val === undefined || moment.isMoment(val))
|
|
|
|
|
return value.length === 0 || value.findIndex((val) => val === undefined || moment.isMoment(val)) !== -1
|
|
|
|
|
} else {
|
|
|
|
|
return value === undefined || moment.isMoment(value)
|
|
|
|
|
}
|
|
|
|
|