Created
October 21, 2016 03:05
-
-
Save sursir/c3e3f63bbfc61c16d6b51f5a37f74194 to your computer and use it in GitHub Desktop.
Array.prototype.range(start, end)
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
// 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