Skip to content

@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

ParameterTypeDescription
valueunknownThe value to test.

Returns

value is Date

true if the value is a Date object, otherwise false.