4 ms·
I find this a little cleaner: window.$ = document.querySelectorAll.bind(document); Since it works properly for any function no matter the number of argume
by Matheus28 2y ago
I find this a little cleaner:
window.$ = document.querySelectorAll.bind(document);
Since it works properly for any function no matter the number of arguments it receives
- simonw 2y agoI like wrapping it in an Array.from() so you can use .map/.filter/etc.