2 ms·
const $$ = (selector) => Array.from(document.querySelectorAll(selector)) is even nicer since then you can do things like $$('.myclass').map(e => stuff)
by SahAssar 9mo ago
const $$ = (selector) => Array.from(document.querySelectorAll(selector))
is even nicer since then you can do things like
$$('.myclass').map(e => stuff)