MCPcopy Create free account
hub / github.com/angular/angular / isDate

Function isDate

packages/common/src/i18n/format_date.ts:1001–1003  ·  view source on GitHub ↗
(value: any)

Source from the content-addressed store, hash-verified

999}
1000
1001export function isDate(value: any): value is Date {
1002 return value instanceof Date && !isNaN(value.valueOf());
1003}

Callers 2

toDateFunction · 0.85

Calls 1

valueOfMethod · 0.65

Tested by

no test coverage detected