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

Function isValidDate

pkgs/core/src/_lib/test/tzOffsetTransitions.ts:38–40  ·  view source on GitHub ↗
(date: unknown)

Source from the content-addressed store, hash-verified

36}
37
38function isValidDate(date: unknown): date is Date {
39 return date instanceof Date && !isNaN(date.getTime());
40}
41
42const MINUTE = 1000 * 60;
43

Callers 1

getTzOffsetTransitionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected