Skip to content

Instantly share code, notes, and snippets.

@sursir
Created October 21, 2016 03:05
Show Gist options
  • Save sursir/c3e3f63bbfc61c16d6b51f5a37f74194 to your computer and use it in GitHub Desktop.
Save sursir/c3e3f63bbfc61c16d6b51f5a37f74194 to your computer and use it in GitHub Desktop.
Array.prototype.range(start, end)
// Array.prototype.range(start, end)
Array.apply(null, {length: end - start + 1}).map((v, i) => i + start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment