Skip to content

Instantly share code, notes, and snippets.

@albertgrala
Created January 28, 2013 15:36
Show Gist options
  • Save albertgrala/4656522 to your computer and use it in GitHub Desktop.
Save albertgrala/4656522 to your computer and use it in GitHub Desktop.
Javascript array iteration , optimized technique
for ( var i = 0, len = list.length; i < len; i++ ) {
// do some stuff with the item list[i]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment