Interval lub(Interval i)

Returns the least upper bound.

Source

Interval lub(Interval i) =>
    new Interval(Math.max(min, i.min), Math.max(max, i.max));