@hokify/agenda
Version:
Light weight job scheduler for Node.js
11 lines • 439 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isValidDate = void 0;
function isValidDate(date) {
// An invalid date object returns NaN for getTime() and NaN is the only
// object not strictly equal to itself.
// eslint-disable-next-line no-self-compare
return new Date(date).getTime() === new Date(date).getTime();
}
exports.isValidDate = isValidDate;
//# sourceMappingURL=date.js.map