Checks if the intervals x is a singleton (an interval representing a single value) i.e. when x.lo === x.hi
x
x.lo === x.hi
Interval.isSingleton( Interval(2, 2)) // trueInterval.isSingleton( Interval(2)) // true
Generated using TypeDoc
Checks if the intervals
x
is a singleton (an interval representing a single value) i.e. whenx.lo === x.hi
Example
Returns