News for hackers. Stuff that matters.
Re:The Brutal Lifecycle of JavaScript Frameworks by esprehn on Friday January 12, 2018 @12:42AM (#16130656)
The modern DOM API has forEach on NodeList so you can skip the Array.from.

  document.querySelectorAll('.my-component div').forEach(node => node.style.background = 'yellow');
https://developer.mozilla.org/en-US/docs/Web/API/NodeList/fo...

There are no comments on this comment yet.