• Initializes an array containing the numbers in the specified range where start and end are inclusive with there common difference step

    Example

    range(5); // [0,1,2,3,4,5]
    

    Example

    range(7, 3); // [3,4,5,6,7]
    

    Example

    range(9, 0, 2); // [0,2,4,6,8]
    

    Parameters

    • end: number
    • Optional start: number = 0
    • Optional step: number = 1

    Returns number[]

Generated using TypeDoc