Node-Red configuration
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

global-this.js 649B

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