rc-js-util
Version:
A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.
14 lines • 387 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getGlobal = void 0;
function getGlobal() {
if (typeof global !== "undefined") {
return global;
}
if (typeof window !== "undefined") {
return window;
}
throw new Error("unsupported environment");
}
exports.getGlobal = getGlobal;
//# sourceMappingURL=get-global.js.map