I just chatted and analyzed some code in the source of some sites, and I came across this convention for an anonymous function.
!function(window){
}(this)
I have never seen the use of a function! for an anonymous function. What is he doing and why should anyone use it?
UPDATE2: my apologies, after additional testing, the following thread pretty much summarizes its use:
What does an exclamation mark do before a function?
source
share