Generate a range array of numbers. The stop is exclusive.
stop
生成一个数字范围的数组, stop 是不包含的。
Generate a range array of numbers starting from 0. The stop is exclusive.
0
从 0 开始生成一个数字范围的数组, stop 是不包含的。
the end of the range. 范围结束数字。
range(5) // => [0, 1, 2, 3, 4] Copy
range(5) // => [0, 1, 2, 3, 4]
the start of the range. 范围开始数字
the end of the range. 范围结束数字
Optional
the step of the range. 步进
range(5, 10) // => [5, 6, 7, 8, 9]range(5, 10, 2) // => [5, 7, 9] Copy
range(5, 10) // => [5, 6, 7, 8, 9]range(5, 10, 2) // => [5, 7, 9]
Generate a range array of numbers. The
stopis exclusive.生成一个数字范围的数组,
stop是不包含的。Param: args
Returns