News for hackers. Stuff that matters.
Re:You might not need jQuery (2014) by ratww on Thursday January 14, 2021 @06:44AM (#25775230)
You can use forEach without the splat:

    document.querySelectorAll(".className").forEach(el => el.classList.add('newClass'));
Re:You might not need jQuery (2014) by jamiesonbecker on Thursday January 14, 2021 @11:12AM (#25778091)
Still doesn't seem like much of a win compared to the jQuery :)

    $(".classname").addClass("darktheme")