date.js 232 B

12345678910
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.isDate = isDate;
  4. var _number = require("./number");
  5. function isDate(val) {
  6. return Object.prototype.toString.call(val) === '[object Date]' && !(0, _number.isNaN)(val.getTime());
  7. }