DEV Community

Discussion on: How do I use .forEach on DOM Elements?

Collapse
 
maxart2501 profile image
Massimo Artizzu

There are some methods that don't make much sense in relation to NodeLists. Mostly mutating methods like push, sort or splice.

The others are fine, though. I'd love to have map or filter 😞