MCPcopy Index your code
hub / github.com/nodejs/node / isValidDate

Function isValidDate

deps/undici/src/lib/handler/cache-handler.js:582–584  ·  view source on GitHub ↗

* @param {Date} date * @returns {boolean}

(date)

Source from the content-addressed store, hash-verified

580 * @returns {boolean}
581 */
582function isValidDate (date) {
583 return date instanceof Date && Number.isFinite(date.valueOf())
584}
585
586module.exports = CacheHandler

Callers 1

determineStaleAtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected