3 ms·
return Array.from(document.querySelectorAll(q));
by rmrfrmrf 8y ago
return Array.from(document.querySelectorAll(q));
- Carpetsmoker 8y agoThis won't filter SVG elements, and unfortunately Array.from isn't available in IE (and perhaps some other browsers that are still in use).