Last active
September 22, 2017 17:38
-
-
Save tilap/4764c10cca39089b0b00debbc57005f4 to your computer and use it in GitHub Desktop.
Filling an array
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
// To get [1, 2, 3, 4, 5, 6, ..., 900] | |
const start = 1; | |
const end = 900; | |
const ids = Array.apply(null, { length: end - start}).map(Number.call, (num) => Number(num) + start); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment