Files
lodash/.internal/root.js
John-David Dalton f03b3edca4 Update object checks.
2017-04-23 22:15:51 -07:00

10 lines
306 B
JavaScript

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