18 lines
686 B
JavaScript
18 lines
686 B
JavaScript
|
"use strict";
|
||
|
var objectTypes = {
|
||
|
'boolean': false,
|
||
|
'function': true,
|
||
|
'object': true,
|
||
|
'number': false,
|
||
|
'string': false,
|
||
|
'undefined': false
|
||
|
};
|
||
|
exports.root = (objectTypes[typeof self] && self) || (objectTypes[typeof window] && window);
|
||
|
/* tslint:disable:no-unused-variable */
|
||
|
var freeExports = objectTypes[typeof exports] && exports && !exports.nodeType && exports;
|
||
|
var freeModule = objectTypes[typeof module] && module && !module.nodeType && module;
|
||
|
var freeGlobal = objectTypes[typeof global] && global;
|
||
|
if (freeGlobal && (freeGlobal.global === freeGlobal || freeGlobal.window === freeGlobal)) {
|
||
|
exports.root = freeGlobal;
|
||
|
}
|
||
|
//# sourceMappingURL=root.js.map
|