Created
July 14, 2017 18:12
-
-
Save harmenjanssen/4111dd5df3baba5e5d04c0e02cd957f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 = (max, n = 0) => | |
n >= max ? | |
[] : | |
[n].concat(range(max, n+1)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment