Skip to content

Instantly share code, notes, and snippets.

@jasonkarns
Last active December 19, 2015 14:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonkarns/5969175 to your computer and use it in GitHub Desktop.
Save jasonkarns/5969175 to your computer and use it in GitHub Desktop.
Get access to global object in a Lint-, ES5-, strict-mode-, and node- safe way.
root = ((f) -> f('return this')())(Function)
var root = (function(f){ return f('return this')(); })(Function);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment