jty
    Preparing search index...

    Function isEqualDate

    • Checks if two Date objects are the same.

      Parameters

      • x: unknown

        The first value to compare.

      • ref: Date

        The reference Date. Must be a valid Date (invalid Dates are rejected by isDate).

      Returns x is Date

      true if the dates are the same, false otherwise.

      if ref is not a valid Date.

      isEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 1)) => true
      isEqualDate(new Date(2020, 0, 1), new Date(2020, 0, 2)) => false