Skip to content

Instantly share code, notes, and snippets.

@zmts
Created April 2, 2019 10:02
Show Gist options
  • Save zmts/ff98ab3af7493ce03b435eae3f19f81c to your computer and use it in GitHub Desktop.
Save zmts/ff98ab3af7493ce03b435eae3f19f81c to your computer and use it in GitHub Desktop.
Create array with specific size Javascript

Create array with specific size Javascript

[  ...Array(10).keys() ] // [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment