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

Yeah, it will also give you an array as the result. #not
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)"