functionfoundry
Version:
Pure function JavaScript library
13 lines (11 loc) • 348 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isdate;
// Copyright 2015 JC Fisher
// ISDATE returns true when the `value` is a JavaScript date object.
function isdate(value) {
return value && Object.prototype.toString.call(value) == '[object Date]';
};
module.exports = exports['default'];