Created
November 7, 2019 16:56
-
-
Save townivan/d5d63a828b365779cf006b3ee52c28bb to your computer and use it in GitHub Desktop.
ie11 JS work-arounds
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
// converting nodelist to an array...for ie11: | |
// ie11 won't like [...nodelist] or Array.from(nodelist) so use: | |
let elements = Array.prototype.slice.call(document.querySelectorAll('.things')); | |
// looping through the array....for ie11: | |
// ie11 won't like elements.map() so use: | |
elements.forEach(function(el) { | |
console.log('el:', el); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment