Skip to content

Instantly share code, notes, and snippets.

@theophani
Created March 14, 2012 12:54
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 theophani/2036267 to your computer and use it in GitHub Desktop.
Save theophani/2036267 to your computer and use it in GitHub Desktop.
console.log(Array.apply(null, Array(30)).map(Function.call.bind(Number)).map(Math.pow.bind(null, 2)))
> [1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment