MCPcopy
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 */
22export function isPast(date: DateArg<Date> & {}): boolean {
23 return +toDate(date) < Date.now();
24}

Callers 1

test.tsFile · 0.90

Calls 1

toDateFunction · 0.90

Tested by

no test coverage detected