Re:jQuery 4.1.0
by recursive on Tuesday November 17, 2026 @05:25PM
(#50539137)
That's a lot of stuff just for [...nodeList].
[ Parent
| on HN ]
Re:jQuery 4.1.0
by chuckadams on Tuesday November 17, 2026 @05:36PM
(#50539272)
jQuery predates that syntax, but have fun chaining that even now.
jQuery had a lot of reasons for existing. And now it has less than it used to. I believe that was the point.
You'd probably usually chain that inside the callback. Instead of addClass('foo').hide(), you'd do el.classList.add('foo'); el.hidden = true; or something. It's not 1:1, but also it's not really that big a deal.