isValid
Checks if a value is a valid Date instance (not Invalid Date).
Unlike isDate (in type/), this also verifies that the internal timestamp
is not NaN.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is Date — True if value is a Date instance with a valid time value
