date.js 156 B

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