Created
August 4, 2016 10:28
-
-
Save edgarberm/8a248754c6404a2503bb026274c99ac8 to your computer and use it in GitHub Desktop.
Returns a numeric range by passing the upper limit
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
range (num) { | |
return [...Array(num).keys()] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment