Created
June 11, 2014 21:27
-
-
Save twitchy/c6e8853c68ca0f0b3bea to your computer and use it in GitHub Desktop.
Optimized for loop
This file contains 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
var len = thing.length; | |
for( var i = len; i--; ) { | |
// stuff | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment