Function isSingleton

  • Checks if the intervals x is a singleton (an interval representing a single value) i.e. when x.lo === x.hi

    Example

    Interval.isSingleton(
    Interval(2, 2)
    ) // true
    Interval.isSingleton(
    Interval(2)
    ) // true

    Returns

    Parameters

    • i: IInterval

    Returns boolean

Generated using TypeDoc