Created
May 25, 2016 02:27
-
-
Save ericelliott/b12b05d18b0561b26e92a82650c12987 to your computer and use it in GitHub Desktop.
range fixed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const range = (start, end) => ( | |
Array.from({ length: end - start + 1 }, (x, i) => i + start) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment