News for hackers. Stuff that matters.
Re:Quiet Hacker News by polote on Sunday September 17, 2017 @07:04PM (#15272187)
you can't use forEach with a NodeList ;)
Re:Quiet Hacker News by AgentME on Sunday September 17, 2017 @07:27PM (#15272279)
Easiest solution is to wrap the NodeList with Array.from(...) first. Just wanted to point out how handy that function is.

Also if we're going to make a snazzy one-liner, let's cut out the unused arguments:

  Array.from(document.querySelectorAll("td.subtext")).forEach(currentValue => { currentValue.hidden = true; });
Re:Quiet Hacker News by sillysaurus3 on Sunday September 17, 2017 @07:07PM (#15272195)
JS's lack of macros strikes again.