2 ms·
lol. But yes, I do really want to abuse the spec. You could also do this: var $ = (function(){ this.version = '1.2.3'; return this; }).call({}) console
by furgooswft13 7y ago
lol. But yes, I do really want to abuse the spec. You could also do this:
var $ = (function(){ this.version = '1.2.3'; return this; }).call({})
console.log($.version); //1.2.3
But that's not quite as ugly so I guess I lose some points.