While looking via some modules sources for node.js I have found one having the following construction:
;(function(global){
var a = // some definitions
.. // code
})(typeof window === "object" ? window : this);
So what is the meaning to write:
- semicolon in front of code?
- to write (typeof window === "object" ? window : this); ?