global.js 465 B

12345678910111213
  1. var check = function (it) {
  2. return it && it.Math == Math && it;
  3. };
  4. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  5. module.exports =
  6. // eslint-disable-next-line no-undef
  7. check(typeof globalThis == 'object' && globalThis) ||
  8. check(typeof window == 'object' && window) ||
  9. check(typeof self == 'object' && self) ||
  10. check(typeof global == 'object' && global) ||
  11. // eslint-disable-next-line no-new-func
  12. Function('return this')();