Uncaught TypeError: 'querySelectorAll' called on an object that does not implement interface Document.
window.$ = (x => document.querySelectorAll(x))
window.$ = document.querySelectorAll.bind(document);
Since it works properly for any function no matter the number of arguments it receives