Skip to content

Instantly share code, notes, and snippets.

@njames njames/forloops.js
Last active Nov 28, 2015

Embed
What would you like to do?
Favorite for loops
for (var i = 0, m = array.length; i < m; i++){ /// ... }
/// this pattern reduces the cost of counting the array or other object more than once
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.