I have seen a couple of JavaScript libraries that have this syntax at the beginning of the file. What does this statement mean, what is the value of getClass after this statement is run, and why is this needed? Also, what is the purpose of the semicolon at the beginning?
;(function (window) {
// Convenience aliases.
var getClass = {}.toString, isProperty, forEach, undef;
// remaining function goes here
}