@offirmo/globalthis-ponyfill1.0.0 • Public • Published
- ~141b minified and gzipped
- NO dependencies
const globalThis =
globalThisis a TC-39 proposal which is already supported by Firefox and Chrome.
- a ponyfill is a better polyfill that doesn't patch the environment.
There are existing ponyfills/polyfills out there, but they didn't work for me:
- too complicated: mine is a single TS file of 5 lines
- I needed TypeScript