Function isInterval

  • 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

    Example

    Interval.isInterval(
    Interval()
    ) // true
    Interval.isInterval(
    undefined
    ) // false
    Interval.isInterval(
    {lo: 1, hi: 2}
    ) // true

    Returns

    true if x is an interval

    Parameters

    • x: any

    Returns boolean

Generated using TypeDoc