I am looking at some javascript code and it has this in a function:
$$(\'.CssClass\').each(function(x) { .... } )
I get that the intent is
Are you looking at a library such as mootools by chance? This is used as a short-hand to certain types of objects by accessing the DOM. They do things like $('myElement') to access page elements for example.