I\'m trying to set get id of all elements in an HTMLCollectionOf. I wrote the following code:
HTMLCollectionOf
var list = document.getElementsByClassName(\"event
Alternative to Array.from is to use Array.prototype.forEach.call
Array.from
Array.prototype.forEach.call
forEach: Array.prototype.forEach.call(htmlCollection, i => { console.log(i) });
Array.prototype.forEach.call(htmlCollection, i => { console.log(i) });
map: Array.prototype.map.call(htmlCollection, i => { console.log(i) });
Array.prototype.map.call(htmlCollection, i => { console.log(i) });
ect...