Skip to content

Instantly share code, notes, and snippets.

@kepta
Created February 5, 2018 04:58
Show Gist options
  • Save kepta/039602aa0cf10d7bcaf25e4f2dfbf837 to your computer and use it in GitHub Desktop.
Save kepta/039602aa0cf10d7bcaf25e4f2dfbf837 to your computer and use it in GitHub Desktop.
var x = [ [1] ];
for(var i = 1; i < 100000; i++) {
x.push(arrayAddFirst(i, x[i-1])); // Warning! do not try this at home
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment