// range(n)
`const range = n => [...Array(n).keys()];
// range(start, end)
const range = (start, end) => [...Array(end + 1).keys()].slice(start);
Last active
March 24, 2019 19:08
-
-
Save holmberd/91562949b39b55fd726ce3e5398ced2b to your computer and use it in GitHub Desktop.
Simple Javascript Range functions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment