3 ms·
How? The only reaon this works is that 'this' in a function that is not called on an object will default to the global object (window for browser js). So just
by jauco 17y ago
How? The only reaon this works is that 'this' in a function that is not called on an object will default to the global object (window for browser js).
So just saying 'this' in an arbitrary function has the same effect.
- gcb 17y agobut `this` is filtered by most js clean up libs.