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

TOP OF THREAD FULL DISCUSSION
re: If only NodeList inherited from Array...
 

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 😞

code of conduct - report abuse