Use i += 1 as it is faster than i++. I also tend to use i !== len instead of i < len since it is a faster comparator.