4 ms·
Good point. BTW that could be written like this:- [].forEach.call(document.querySelectorAll('p'), function (el) { console.log(el); });
by salmanapk 14y ago
Good point.
BTW that could be written like this:-
[].forEach.call(document.querySelectorAll('p'), function (el) { console.log(el); });
- apendleton 14y agoArray.prototype.forEach didn't arrive in IE until 9, so if the point is that you can do anything that jquery can do, this won't work.
- salmanapk 14y agohuh? Might want to check the comment I was replying to.