MCPcopy Index your code
hub / github.com/node-schedule/node-schedule / isValidDate

Function isValidDate

lib/utils/dateUtils.js:3–7  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

1'use strict';
2
3function isValidDate(date) {
4 // Taken from http://stackoverflow.com/a/12372720/1562178
5 // If getTime() returns NaN it'll return false anyway
6 return date.getTime() === date.getTime();
7}
8
9module.exports = {
10 isValidDate

Callers 1

Job.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…