@eroyeroy/utils - v0.1.0
    Preparing search index...

    Function isPast

    • Returns true if date is in the past (before the current moment).

      Parameters

      • date: Date

        The date to check.

      Returns boolean

      isPast(new Date("2000-01-01")) // => true
      isPast(new Date("2099-01-01")) // => false