Created
June 30, 2021 19:15
-
-
Save directionforward/59c484c6bfa93b2669620a52d32cf6b5 to your computer and use it in GitHub Desktop.
Fix forEach for ES6 in IE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof NodeList.prototype.forEach !== 'function') { | |
NodeList.prototype.forEach = Array.prototype.forEach; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment