UNPKG

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.

10 lines 258 B
export function getGlobal() { if (typeof global !== "undefined") { return global; } if (typeof window !== "undefined") { return window; } throw new Error("unsupported environment"); } //# sourceMappingURL=get-global.js.map