Skip to content

Instantly share code, notes, and snippets.

@gilesdring
Created October 6, 2015 21:34
Show Gist options
  • Save gilesdring/3fc399f2553ea6fb64b7 to your computer and use it in GitHub Desktop.
Save gilesdring/3fc399f2553ea6fb64b7 to your computer and use it in GitHub Desktop.

Creating a blank array

The following incantation creates an array of length 10.

Array.apply(null, {length: 10})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment