I\'m going to be running document.querySelectorAll() a whole lot, and would like a shorthand alias for it.
var queryAll = document.querySelectorAll queryAll
I took @David Muller's approach and one-lined it using a lambda
let $ = (selector) => document.querySelector(selector); let $all = (selector) => document.querySelectorAll(selector);
Example:
$('body'); // ...