Variable: isDate
constisDate:TypePredicate<unknown,Date>
Defined in: predicate/guards/index.ts:314
Type guard that checks if a value is a Date instance.
Param
The value to check
Returns
True if value is a Date
Example
import { isDate } from 'receta/predicate'
isDate(new Date()) // => true
isDate('2024-01-01') // => false
isDate(Date.now()) // => false