123456789101112131415161718 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.getGlobal = void 0;
- function checkForMath(potentialGlobal) {
-
- return potentialGlobal && potentialGlobal.Math == Math && potentialGlobal;
- }
- function getGlobal() {
-
- return (checkForMath(typeof globalThis === 'object' && globalThis) ||
- checkForMath(typeof window === 'object' && window) ||
- checkForMath(typeof self === 'object' && self) ||
- checkForMath(typeof global === 'object' && global) ||
- Function('return this')());
- }
- exports.getGlobal = getGlobal;
|