Function range

  • Returns an array of incrementing values starting at begin and incrementing by one for length.

    E.g.: range(3)[0, 1, 2] and range(3, 1)[1, 2, 3]

    Parameters

    • length: number

      the number of elements in the array

    • begin: number = 0

      the index at which the range starts (default: 0)

    Returns number[]

Generated using TypeDoc