Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/date_fns/isDate/index.js>default

date-fns Deno package
Go to Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.0.0-alpha.35/isDate/index.js";

Examples

// For a valid date: var result = isDate(new Date()) //=> true

// For an invalid date: var result = isDate(new Date(NaN)) //=> true

// For some value: var result = isDate('2014-02-31') //=> false

// For an object: var result = isDate({}) //=> false

Parameters

value
  • the value to check