HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Zardoz84 | Hacker News Reader
Parent
Full thread
Zardoz84
·
const $ = document.querySelectorAll
View on HN
Tistron
·
I usually do
const $ = (s, e = document) => e.querySelector(s)
and a similar one for $$.
recursive
·
Probably have to bind the this value.
Reply on news.ycombinator.com