Re:Why It's Time to Sunset jQuery
by gildas on Sunday April 14, 2013 @04:49PM
(#5548236)
You don't need to call the slice method:
[ Parent
| on HN ]
Re:Why It's Time to Sunset jQuery
by TazeTSchnitzel on Sunday April 14, 2013 @05:32PM
(#5548417)
And I could use underscore, a much more general-purpose library than jQuery to help me here, only 4kb. So:
_.each(document.querySelectorAll('thing'), function (elem) { value = somevalue; });
(But then I might as well just use jQuery, I guess)