Comment by SahAssar
16 hours ago
const $$ = (selector) => Array.from(document.querySelectorAll(selector))
is even nicer since then you can do things like
$$('.myclass').map(e => stuff)
16 hours ago
const $$ = (selector) => Array.from(document.querySelectorAll(selector))
is even nicer since then you can do things like
$$('.myclass').map(e => stuff)
No comments yet
Contribute on Hacker News ↗