NodeList.prototype.map = Array.prototype.map
document.querySelectorAll("div").map(function(ele){ return ele.id });