Skip to content

Instantly share code, notes, and snippets.

@beratdogan
Created April 22, 2014 23:07
Show Gist options
  • Save beratdogan/11197477 to your computer and use it in GitHub Desktop.
Save beratdogan/11197477 to your computer and use it in GitHub Desktop.
Fill arrays in JavaScript.
Array.apply(null, new Array(3)).map(Array.prototype.valueOf, (Array.apply(null, new Array(3)).map(Number.prototype.valueOf, 0)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment