Y
Hacker News
new
|
ask
|
show
|
jobs
by
m90
4320 days ago
Didn't know that `var $ = document.querySelectorAll;` will give you a chainable and highly fluent API, if I only knew earlier....
1 comments
alessioalex
4320 days ago
Yeah, it will also give you an array as the result. #not
link
moron4hire
4320 days ago
it won't give you anything, calling that $ function will result in an error in all but stupidly rare cases. And by stupidly rare I mean, it's rare to see anyone use "with", and it'd be stupid to do "with(document)"
link