window.$ = document.querySelectorAll
window.$ = (x => document.querySelectorAll(x))
window.$ = document.querySelectorAll.bind(document);
Since it works properly for any function no matter the number of arguments it receivesBut I think the OP's jQuery replacement is also dropping features in the service of a small footprint. So this was my 80/20 contribution to the "smallest jQuery replacement" problem ;)