Returns an array of numbers, starting from and ending at provided numbers.
function range(start: number, end: number, step = 1)
// Example:
range(5, 10) //=> [5, 6, 7, 8, 9, 10]
range(0, 10, 2) //=> [0, 2, 4, 6, 8, 10]
range(10, 0, -2) //=> [10, 8, 6, 4, 2, 0]
As demonstrated in the above examples, you can optionally pass in a step number to increment by a number other than 1 or decrement by providing a negative number to the step parameter.