Hacker News new | ask | show | jobs
by SahAssar 152 days ago

    const $$ = (selector) => Array.from(document.querySelectorAll(selector))
is even nicer since then you can do things like

    $$('.myclass').map(e => stuff)