You probably recognize this way of iterating in JavaScript
for (let i = 0; i < myArray.length; i++) {
// do something with myArray[i]
}
in ES6, there's a much cleaner way with for..of loops
for (item of myArray) {
// do something with item
I think that looks a lot better! I changed several of my for loops to for...of loops in this commit.