Welcome to the Kung Fu Garden

Explore various micro projects and platforms by x51 and friends.

Kung Fu Garden Proto Library v3.0.2


Kung Fu Garden Proto Library / index / range

Function: range()

range(max, min?): number[]

Generates a range of sequential numbers as an array

Parameters

max

number

The maximum value in the range (exclusive)

min?

number

The minimum value in the range (inclusive, defaults to 1)

Returns

number[]

An array containing the range of numbers