News for hackers. Stuff that matters.
Re:What We Lost with PHP and jQuery by someothherguyy on Sunday June 01, 2025 @01:15PM (#44152339)
classList.add is variadic, so a more honest implementation might be

  var _ = s => document.querySelectorAll(s)

  _('.someclass').forEach(e => {e.classList.add('something', 'else')})

There are no comments on this comment yet.