Skip to content

Instantly share code, notes, and snippets.

@arekko
Created January 5, 2020 09:58
Show Gist options
  • Save arekko/1a7b9fcf97f6f81a99c804ab5914da55 to your computer and use it in GitHub Desktop.
Save arekko/1a7b9fcf97f6f81a99c804ab5914da55 to your computer and use it in GitHub Desktop.
Range function implementation
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