Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/date-fns/date-fns
/ isValid
Function
isValid
pkgs/core/src/isValid/index.ts:35–37 ·
view source on GitHub ↗
(date: unknown)
Source
from the content-addressed store, hash-verified
33
*
//=> false
34
*/
35
export
function
isValid(date: unknown): boolean {
36
return
!((!isDate(date) && typeof date !==
"number"
) || isNaN(+toDate(date)));
37
}
Callers
8
differenceInBusinessDays
Function · 0.90
test.ts
File · 0.90
isMatch
Function · 0.90
formatRFC7231
Function · 0.90
lightFormat
Function · 0.90
formatRFC3339
Function · 0.90
formatISO9075
Function · 0.90
format
Function · 0.90
Calls
2
isDate
Function · 0.90
toDate
Function · 0.90
Tested by
no test coverage detected