|
|
|
|
|
by jQueryIsAwesome
4914 days 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
});
|
|