Checks if x is an interval, x is an interval if it's an object which has x.lo and x.hi defined and both are numbers
x
x.lo
x.hi
Interval.isInterval( Interval()) // trueInterval.isInterval( undefined) // falseInterval.isInterval( {lo: 1, hi: 2}) // true
true if x is an interval
Generated using TypeDoc
Checks if
x
is an interval,x
is an interval if it's an object which hasx.lo
andx.hi
defined and both are numbersExample
Returns
true if
x
is an interval