I was just being goofy and analyzing some code in the source of some sites and I ran across this convention for an anonymous function.
!function(window){
//so a bunch of stuff
}(this)
I have never seen the !function usage for an anonymous function. What does it do, and why would someone use it?
UPDATE2: my apologies, after additional testing, the following thread pretty much sums up its usage: