Implement range(start, end, step)
Write a lodash-style range supporting three call shapes:
range(end)—0up to (not including)end.range(start, end)—startup to (not including)end.range(start, end, step)— stepping bystep(which may be negative, to count down).
range(5); // [0, 1, 2, 3, 4]
range(2, 5); // [2, 3, 4]
range(5, 1, -1); // [5, 4, 3, 2]