re: Use $ & $$ Instead of document.querySelector/All in JavaScript without jQuery VIEW POST


Watch out that querySelectorAll returns a NodeList object, whereas $$ in the console returns an array.

So if you're used to call all the sweet array prototype methods, you might fall short!

Solution: wrap everything in Array.from.

code of conduct - report abuse