Function equal

  • Checks if the intervals x, y are equal, they're equal when x.lo === y.lo and x.hi === y.hi, a corner case handled is when x and y are both empty intervals

    Example

    Interval.equal(
    Interval(2, 3),
    Interval(2, 3)
    ) // true

    Example

    Interval.equal(
    Interval.EMPTY,
    Interval.EMPTY
    ) // true

    Returns

    Parameters

    Returns boolean

Generated using TypeDoc