Created
January 8, 2013 17:30
-
-
Save rwaldron/4485855 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Ben Alman: | |
Array.apply(null, {length: 5}).map(Function.prototype.call, Number); | |
// ...Which is way cooler then my original: | |
Array.apply(null, new Array(5)).map(function(v, k) { return k; }); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment