Hacker News new | ask | show | jobs
by bodhi 4015 days ago
If we're golfing,

    $ = document.querySelector.bind(document);
would be sufficient? ;)
1 comments

(var | let | const) $ = ::document.querySelector;

with experimental ES7 syntax :D https://github.com/zenparsing/es-function-bind

Huh, my joke actually turned into me learning something, thanks!
Hehe, You're welcome – I do take golfing very serious ;)