mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
10 lines
306 B
JavaScript
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
|