Skip to content

Instantly share code, notes, and snippets.

@johnmichel
Created June 25, 2010 03:42
Show Gist options
  • Save johnmichel/452365 to your computer and use it in GitHub Desktop.
Save johnmichel/452365 to your computer and use it in GitHub Desktop.
A different approach to for loops
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