1234567891011
  1. "use strict";
  2. var objToString = Object.prototype.toString, id = objToString.call(new Date());
  3. module.exports = function (value) {
  4. return (
  5. (value && !isNaN(value) && (value instanceof Date || objToString.call(value) === id)) ||
  6. false
  7. );
  8. };