Function range

  • Yields all numbers (incrementing by 1 on each step) from 0 until end is reached.

    Parameters

    • end: number

      The value that should serve as the upper bound of the range. It will not be included in the returned range.

    Returns IterableIterator<number>

  • Yields all numbers (incrementing by 1 on each step) from start until end is reached.

    Parameters

    • start: number

      The value with which to begin the range.

    • end: number

      The value that should serve as the upper bound of the range. It will not be included in the returned range.

    Returns IterableIterator<number>

  • Yields all numbers (incrementing by step after each yield) from start until end is reached.

    Parameters

    • start: number

      The value with which to begin the range.

    • end: number

      The value that should serve as the upper bound of the range. It will not be included in the returned range.

    • step: number

      Difference between each number in the sequence.

    Returns IterableIterator<number>

Generated using TypeDoc