3 ms·
Didn't know that `var $ = document.querySelectorAll;` will give you a chainable and highly fluent API, if I only knew earlier....
by m90 12y ago
Didn't know that `var $ = document.querySelectorAll;` will give you a chainable and highly fluent API, if I only knew earlier....
- alessioalex 12y agoYeah, it will also give you an array as the result. #not
- moron4hire 12y agoit 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)"