Checks if a given value is a valid Date object.
Date
isDate(new Date('2023-03-16'))// => trueisDate(new Date())// => trueisDate(true)// => false Copy
isDate(new Date('2023-03-16'))// => trueisDate(new Date())// => trueisDate(true)// => false
The type of the input value.
The value to be checked.
true if the given value is a Date object, false otherwise.
true
false
Generated using TypeDoc v0.24.7
Checks if a given value is a valid
Date
object.Example