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