interval.includes
Whether a value lies between the interval’s ends, inclusive, in either order.
Usage
Interval.includes(i: Interval, t: number): booleanParameters
iIntervalThe interval; decreasing intervals (t0 > t1) keep their order.
tnumberThe value to test.
Returns
true when min(t0, t1) ≤ t ≤ max(t0, t1); false for NaN.
Example
Interval.includes(Interval.of(5, 2), 3) // → true