Skip to content

Instantly share code, notes, and snippets.

Last active November 28, 2015 23:55
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