3 ms·Damn, you're right, sorry. window.$ = (x => document.querySelectorAll(x))by xg15 2y agoDamn, you're right, sorry. window.$ = (x => document.querySelectorAll(x))Matheus28 2y agoI find this a little cleaner: window.$ = document.querySelectorAll.bind(document); Since it works properly for any function no matter the number of arguments it receivessimonw 2y agoI like wrapping it in an Array.from() so you can use .map/.filter/etc.