Last active
October 25, 2020 01:43
-
-
Save sscotth/7dc69955c859985d065e021cb1a25be6 to your computer and use it in GitHub Desktop.
Range
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 = n => [...Array(n).keys()] |
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 = (x, y) => Array.from({ length: y - x }, (v, k) => k + x) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment