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

x/date_fns/isPast/index.js>default

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

Examples

// If today is 6 October 2014, is 2 July 2014 in the past? var result = isPast(new Date(2014, 6, 2)) //=> true

Parameters

dirtyDate
  • the date to check