Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/date-fns/date-fns
/ isPast
Function
isPast
pkgs/core/src/isPast/index.ts:22–24 ·
view source on GitHub ↗
(date: DateArg<Date> & {})
Source
from the content-addressed store, hash-verified
20
*
//=> true
21
*/
22
export
function
isPast(date: DateArg<Date> & {}): boolean {
23
return
+toDate(date) < Date.now();
24
}
Callers
1
test.ts
File · 0.90
Calls
1
toDate
Function · 0.90
Tested by
no test coverage detected