2 ms·
assuming "this" is an element... `this.querySelector` if you're intending to match multiples... Array.from(document.querySelectorAll(...)).forEach(x => {..
by tracker1 8y ago
assuming "this" is an element... `this.querySelector` if you're intending to match multiples...
Array.from(document.querySelectorAll(...)).forEach(x => {...})
It's not *that hard... though forEach should be on your dom collection returned, if Array.from exists, but I started shimming Array.from long before either were standard.