3 ms·
And I could use underscore, a much more general-purpose library than jQuery to help me here, only 4kb. So: _.each(document.querySelectorAll('thing'), functio
by TazeTSchnitzel 14y ago
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)