Files
lodash/_root.js
2017-01-09 13:00:52 -08:00

10 lines
302 B
JavaScript

import freeGlobal from './_freeGlobal.js';
/** Detect free variable `self`. */
const freeSelf = typeof self == 'object' && self && self.Object === Object && self;
/** Used as a reference to the global object. */
const root = freeGlobal || freeSelf || Function('return this')();
export default root;