Created
June 25, 2010 03:42
-
-
Save johnmichel/452365 to your computer and use it in GitHub Desktop.
A different approach to for loops
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 i = -1, n = map.length; | |
// loop through each of the entries within map | |
for(i; ++i < n;) { /* do something */ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment