2 ms·
You can also create a getter on NodeList.prototype named '_' that returns Array.from(this) and then just use any of the array methods on it. Like document.
by megous 6y ago
You can also create a getter on NodeList.prototype named '_' that returns Array.from(this) and then just use any of the array methods on it. Like
document.querySelectorAll('div')._.some(...)
So many options. :)