3 ms·
Usually it’s because you want to use an array function like .filter() that isn’t implemented by the iterable itself.
by mr_toad 4y ago
Usually it’s because you want to use an array function like .filter() that isn’t implemented by the iterable itself.
- megous 4y agoNodeList.prototype.filter = Array.prototype.filter; and you can querySelectorAll('...').filter(el => ...) without any copies.
- deleted 4y ago[deleted]