(no title)
bfred_it | 6 years ago
This is my go-to:
const $ = document.querySelector.bind(document);
const $$ = document.querySelectorAll.bind(document);
Tip: browser consoles already have these shortcuts, except $$ returns an actual array there instead of a NodeList.
No comments yet.