re: How do I use .forEach on DOM Elements? VIEW POST

FULL DISCUSSION
 

Although it's a very good point that you can use a for-loop in this case, your own solution can be simplified to [].forEach.call, which would also work in case you'd need other array operations such as map, filter or reduce.

code of conduct - report abuse