@technobuddha > library > Object > Type Guards
Function: isDate()
ts
function isDate(value: unknown): value is Date;Defined in: is-date.ts:10
Determines whether the provided value is a Date object.
Parameters
| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to test. |
Returns
value is Date
true if the value is a Date object, otherwise false.