Object doesn’t support property or method ‘forEach’

To make NodeList.forEach() method work on inter­net explorer, you will have to add the fol­low­ing poly­fill in your application.

(function () {
    if ( typeof NodeList.prototype.forEach === "function" ) return false;
    NodeList.prototype.forEach = Array.prototype.forEach;
})();

If this poly­fill helped in your work, let us how it helped you by your comments !

You may also like...

  • Mohamad Al-Baz

    Yes. Totally did the trick.. Thumbs Up !