I\'ve been working on JavaScript lately, and everything was fine until I opened my page in IE11. as per Mozilla website .forEach is supported f
.forEach
I was doing so:
Array.from(document.querySelectorAll(someElements))
The asnwer for me was simply that:
if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = Array.prototype.forEach; }
Making sure that forEach also exists in Nodelist.