2025-06-26 14:55:08 +08:00

4 lines
156 B
JavaScript

import { isNaN } from './number';
export function isDate(val) {
return Object.prototype.toString.call(val) === '[object Date]' && !isNaN(val.getTime());
}