I've seen this, using "$$", for instance:
[].forEach.call($$("*"), function(a) {
a.style.outline =
"1px solid #" + (~~(Math.random() * (1 << 24))).toString(16);
function Main() {
[].forEach.call($$("*"), function(a) {
a.style.outline =
"1px solid #" + (~~(Math.random() * (1 << 24))).toString(16);
});
//sorry, didn't find credit, but thanks to author
}
$(document).ready(function() {
//Main();
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div>Some Text</div>
unfortunately, searching for $$ anywhere (google, yahoo, jquery site, jquery file, stackexchange) on the web return no result.
I can see what it does, but would like to know where it comes from?
And am also interested in how I could have found the answer by myself, because I can't google it or look it up in the jQuery API documentation. thanks
Edit:
- it's not a duplicate of JavaScript Double Dollar Sign . I'm talking about the $$ variable, actually assigned to something even in a blank page without any js loaded. Opening chrome console and typing $$ should allow someone to answer
- (wondering why no search engine can return a result when searching for $$)