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
x
y
x.lo === y.lo
x.hi === y.hi
Interval.equal( Interval(2, 3), Interval(2, 3)) // true
Interval.equal( Interval.EMPTY, Interval.EMPTY) // true
Generated using TypeDoc
Checks if the intervals
x,yare equal, they're equal whenx.lo === y.loandx.hi === y.hi, a corner case handled is whenxandyare both empty intervalsExample
Example
Returns