i += 1 is faster. Also need to cache the length into a variable rather than reaccessing the property each time. Also note that the !== comparison is faster than &lt;