3 ms·
> Converting querySelectorAll to an array is honestly most of the benefit of these libraries. Now that NodeList is iterable, I don't even know that converting
by spankalee 2y ago
> Converting querySelectorAll to an array is honestly most of the benefit of these libraries.
Now that NodeList is iterable, I don't even know that converting to an array is that useful anymore.
[...document.querySelector('div')] is pretty easy.
Iterator.from(document.querySelector('div')) too (doesn't work yet in Safari).