3 ms·
It's actually a Javascript strength; one that makes it more dynamic. NodeList.prototype.map = Array.prototype.map Just one line and now you can do stuff l
by jQueryIsAwesome 14y ago
It's actually a Javascript strength; one that makes it more dynamic.
NodeList.prototype.map = Array.prototype.map
Just one line and now you can do stuff like:
document.querySelectorAll("div").map(function(ele){
return ele.id
});