Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
582
function
isValidDate (date) {
583
return
date instanceof Date && Number.isFinite(date.valueOf())
584
}
585
586
module.exports = CacheHandler
Callers
1
determineStaleAt
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected