//es6 Array.from(els).forEach((el) => { }); //old shit Array.prototype.forEach.call(els, function(el) { // Do stuff here console.log(el.tagName); }); // Or [].forEach.call(els, function (el) {...});