Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
loganfsmyth
· 9y ago · 0 comments
You don't even need the `Array.from` anymore. `.forEach` on `NodeList` is standard
https://developer.mozilla.org/en-US/docs/Web/API/NodeList/fo...
, so all you need to do is load a polyfill for that.
Comments
[–]
Flenser
9y ago
You might want to do map or filter before you do forEach. In which case you would need to convert it to an array.