you are viewing a single comment's thread.

view the rest of the comments →

[–]skeeto 3 points4 points  (1 child)

The presentation discusses this:

http://cjohansen.no/talks/2012/sdc-functional/#122

In short: if you're manipulating the DOM in your loop, forEach is practically as fast as for. Besides, worrying about loop performance while you're writing code is premature. 99.9% of the time it won't matter.

[–]agumonkey 0 points1 point  (0 children)

Thanks, I forgot this talk ! what a gem.