UNPKG

xe-utils

Version:

JavaScript 函数库、工具类

12 lines (10 loc) • 312 B
import isDate from './isDate.js';import helperDateGetTime from './helperDateGetTime.js';/** * 判断是否有效的Date对象 * * @param {any} val 对象 * @return {boolean} */ function isValidDate (val) { return isDate(val) && !isNaN(helperDateGetTime(val)) } export default isValidDate