Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save imjayson/6222367 to your computer and use it in GitHub Desktop.
Save imjayson/6222367 to your computer and use it in GitHub Desktop.
Javscript: Efficient JS Looping - reminder to myself
for (var i = 0, item; item = a[i++];) {
// Do something with item
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment