milesman34-range
v1.0.0
Published
Creates a range of numbers, based on how the Python range function works.
Downloads
2
Readme
Range
The function range
works like the version from Python, generating a range of numbers in the form of an array.
range(1, 11); //[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
range(1, 11, 2); //[1, 3, 5, 7, 9]
range(10, 5, -1); //[10, 9, 8, 7, 6]
range(5); //[0, 1, 2, 3, 4]