Files
lodash/.internal/root.js
Phap Dinh 15e1557b2a lint files (#4416)
* lint files

* added back arrow-paren and removed duplicate
2019-08-17 10:44:54 -07:00

14 lines
517 B
JavaScript

/* global globalThis, self */
import freeGlobal from './freeGlobal.js'
/** Detect free variable `globalThis` */
const freeGlobalThis = typeof globalThis == 'object' && globalThis !== null && globalThis.Object == Object && globalThis
/** 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 = freeGlobalThis || freeGlobal || freeSelf || Function('return this')()
export default root