MCPcopy
hub / github.com/date-fns/date-fns / invalidDate

Function invalidDate

pkgs/core/src/_lib/tp/index.ts:48–53  ·  view source on GitHub ↗
(
  date: DateArg<DateType>,
  options?: ContextOptions<ResultDate> | undefined,
)

Source from the content-addressed store, hash-verified

46}
47
48function invalidDate<DateType extends Date, ResultDate extends Date = DateType>(
49 date: DateArg<DateType>,
50 options?: ContextOptions<ResultDate> | undefined,
51): ResultDate {
52 return constructFrom(options?.in || date, NaN);
53}

Callers 1

toTpInstantFunction · 0.70

Calls 1

constructFromFunction · 0.90

Tested by

no test coverage detected