If we're golfing,
$ = document.querySelector.bind(document);
would be sufficient? ;) $ = document.querySelector.bind(document);
would be sufficient? ;)with experimental ES7 syntax :D https://github.com/zenparsing/es-function-bind