LendAndRegret/node_modules/es-toolkit/dist/_internal/globalThis.mjs
2026-05-02 17:27:43 +08:00

11 lines
326 B
JavaScript

const globalThis_ = (typeof globalThis === 'object' && globalThis) ||
(typeof window === 'object' && window) ||
(typeof self === 'object' && self) ||
(typeof global === 'object' && global) ||
(function () {
return this;
})() ||
Function('return this')();
export { globalThis_ as globalThis };