Created
January 5, 2020 09:58
-
-
Save arekko/1a7b9fcf97f6f81a99c804ab5914da55 to your computer and use it in GitHub Desktop.
Range function implementation
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
function range(start, end) { | |
return [...Array(end)].keys().map(el => el + start) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment