import { default } from "https://deno.land/x/date_fns@v2.22.1/isDate/index.ts";
Examples
// For a valid date:
const result = isDate(new Date())
//=> true
// For a valid date: const result = isDate(new Date()) //=> true
// For an invalid date:
const result = isDate(new Date(NaN))
//=> true
// For an invalid date: const result = isDate(new Date(NaN)) //=> true
// For some value:
const result = isDate('2014-02-31')
//=> false
// For some value: const result = isDate('2014-02-31') //=> false
// For an object:
const result = isDate({})
//=> false
// For an object: const result = isDate({}) //=> false