Returns true if date is in the past (before the current moment).
true
date
The date to check.
isPast(new Date("2000-01-01")) // => trueisPast(new Date("2099-01-01")) // => false Copy
isPast(new Date("2000-01-01")) // => trueisPast(new Date("2099-01-01")) // => false
Returns
trueifdateis in the past (before the current moment).