5 ms·
If we're golfing, $ = document.querySelector.bind(document); would be sufficient? ;)
by bodhi 11y ago
If we're golfing,
$ = document.querySelector.bind(document);
would be sufficient? ;)
- takle 11y ago(var | let | const) $ = ::document.querySelector; with experimental ES7 syntax :D https://github.com/zenparsing/es-function-bind https://github.com/zenparsing/es-function-bind