#Use $$() not $() to return an array of elements
A tip I read on Remy Sharp’s blog.
The Devtools console gives you access to the $() function (even if you don’t include jQuery/Zepto, etc).
It’s nice but doesn’t help if you need to return a collection of elements.
That’s where you can use the $$() function, also provided by the console.
And the best part is that it doesn't return a NodeList but a real Array.
So you can use map, .forEach directly on it 👏.
I found it very handy and have written small NPM package to use it in production code :)
https://www.npmjs.com/package/query-alias