isValid
import { isValid } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// For the valid date:
const result = isValid(new Date(2014, 1, 31))
//=> true
@example
// For the value, convertable into a date:
const result = isValid(1393804800000)
//=> true
@example
// For the invalid date:
const result = isValid(new Date(''))
//=> false
function isValid(date: unknown): boolean;