DEV Community

Beto Muniz
Beto Muniz

Posted on • Updated on • Originally published at betomuniz.com

globalThis in a nutshell

globalThis is a global object reference for client and server applications using JavaScript.

πŸ‘‰ It’s helpful to create cross-platform apps and libraries.

πŸ”’ Due to security, globalThis is a Proxy reference of the global object on the browser.

globalThis.fetch("https://...");
Enter fullscreen mode Exit fullscreen mode

Top comments (0)