Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
spiralx
on Sept 6, 2018
|
parent
|
context
|
favorite
| on:
How true hackers write JavaScript
If you really need a shortcut then
const $ = (sel, elem = document) => [ ...elem.querySelectorAll(sel) ]
is nicer as you can use CSS selectors.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: