Function range

  • Generates a 0-based numeric sequence. The output range does not include 'stop'.

    Parameters

    • stop: number

    Returns number[]

  • Generates a numeric sequence starting from the given start and stop values. 'step' defaults to 1. The output range does not include 'stop'.

    Parameters

    • start: number
    • stop: number
    • Optional step: number

    Returns number[]