Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Zardoz84
22 days ago
|
parent
|
context
|
favorite
| on:
jQuery 4
const $ = document.querySelectorAll
Tistron
22 days ago
|
next
[–]
I usually do
const $ = (s, e = document) => e.querySelector(s)
and a similar one for $$.
recursive
22 days ago
|
prev
[–]
Probably have to bind the this value.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: