MCPcopy
hub / github.com/nodejs/undici / isValidDate

Function isValidDate

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

Used in the wild real call sites across dependent graphs

searching dependent graphs…