Skip to content

Instantly share code, notes, and snippets.

@sergeylukin
Created September 24, 2022 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sergeylukin/3972702a8f1b580d07d81a348fb26993 to your computer and use it in GitHub Desktop.
Save sergeylukin/3972702a8f1b580d07d81a348fb26993 to your computer and use it in GitHub Desktop.
alternative for for (let i =0; i < len; i++ ) { ... }
const len = 20
const users = Array.apply(null, Array(len)).map(() => {
doSomething()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment