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.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: