MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/b2o6f2/whats_your_favorite_most_useful_javascript/eius2nf
r/javascript • u/Linux_is_awesome • Mar 18 '19
422 comments sorted by
View all comments
Show parent comments
0
[deleted]
1 u/[deleted] Mar 19 '19 It does not. The Chrome command line API comes with $, which is not available from browser code. Also, the CLA version of $ is equivalent to document.querySelector, not querySelectorAll. 3 u/[deleted] Mar 19 '19 Dev-tools is the context of the conversation 2 u/Sn34kyMofo Mar 19 '19 $$ is querySelectorAll in DevTools, except it returns the nodelist as an array, which is nice.Example: $$('.ad-container').slice(-1)[0].remove();
1
It does not. The Chrome command line API comes with $, which is not available from browser code. Also, the CLA version of $ is equivalent to document.querySelector, not querySelectorAll.
$
3 u/[deleted] Mar 19 '19 Dev-tools is the context of the conversation 2 u/Sn34kyMofo Mar 19 '19 $$ is querySelectorAll in DevTools, except it returns the nodelist as an array, which is nice.Example: $$('.ad-container').slice(-1)[0].remove();
3
Dev-tools is the context of the conversation
2
$$ is querySelectorAll in DevTools, except it returns the nodelist as an array, which is nice.
Example: $$('.ad-container').slice(-1)[0].remove();
0
u/[deleted] Mar 19 '19
[deleted]