logoalt Hacker News

SahAssartoday at 1:48 PM0 repliesview on HN

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

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