Files
lodash/_root.js
John-David Dalton c731ef8e1e Bump to v4.13.0.
2016-05-22 19:32:32 -07:00

17 lines
539 B
JavaScript

define(['./_checkGlobal'], function(checkGlobal) {
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(typeof global == 'object' && global);
/** Detect free variable `self`. */
var freeSelf = checkGlobal(typeof self == 'object' && self);
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(typeof this == 'object' && this);
/** Used as a reference to the global object. */
var root = freeGlobal || freeSelf || thisGlobal || Function('return this')();
return root;
});