7f5a8673ef600de969d83a99bc47d87ce93b80cf06339127474f78c48bcf73c6abdf0c091e922db5f2f7f1ead053332f8934702a83af558100ae85d6751ab5 459 B

1234567891011121314151617
  1. // Returns global object of a current environment.
  2. export default (() => {
  3. if (typeof global !== 'undefined' && global.Math === Math) {
  4. return global;
  5. }
  6. if (typeof self !== 'undefined' && self.Math === Math) {
  7. return self;
  8. }
  9. if (typeof window !== 'undefined' && window.Math === Math) {
  10. return window;
  11. }
  12. // eslint-disable-next-line no-new-func
  13. return Function('return this')();
  14. })();