Iterate over a collection. For side effects — the mori.each docs First of all, this post is not about performance. for-loops will always be faster than Array.forEach. If profiling reveals that the overhead of iteration is significant enough and performance is paramount, then you should definitely avoid forEach and use a for-loop. (I would also add that always using a for-loop is the quintessential
![Avoid forEach - ÆFLASH](https://cdn-ak-scissors.b.st-hatena.com/image/square/0edb3fa865dcddced169c23414e5c63c30086970/height=288;version=1;width=512/https%3A%2F%2Faeflash.com%2Faeog.png)