This class allows iteration over non-contiguous indexes. In the future, this will support the EcmaScript 2015 Iteration protocol, but for now has one method which returns an iterator, and also supports querying the size. Additionally, we may add support for creating RangeSet objects to better serve some use cases.

Hierarchy

  • RangeSet

Constructors

Accessors

  • get size(): number
  • The total count of items contained in this collection. In some cases this can be expensive to compute, and generally should not be needed except for debugging purposes, or preallocating space (i.e., do not call this property each time through a loop).

    Returns number

    double

Methods

  • Parameters

    • first: number
    • last: number

    Returns RangeSet