English
Appearance
Retrieve the global object based on the current environment.
import { getGlobalThis } from 'rattail' getGlobalThis() // returns `window` in browser, `global` in Node.js, // or `self` in web worker
typeof globalThis