Y
Hacker News
new
|
ask
|
show
|
jobs
by
loganfsmyth
3190 days ago
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.
1 comments
Flenser
3189 days 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.
link