import { isValid } from "https://deno.land/x/date_fns@v2.0.0-alpha.34/index.js";
Examples
// For the valid date:
var result = isValid(new Date(2014, 1, 31))
//=> true
// For the valid date: var result = isValid(new Date(2014, 1, 31)) //=> true
// For the value, convertable into a date:
var result = isValid(1393804800000)
//=> true
// For the value, convertable into a date: var result = isValid(1393804800000) //=> true
// For the invalid date:
var result = isValid(new Date(''))
//=> false
// For the invalid date: var result = isValid(new Date('')) //=> false