4 ms·I've used globalThis for polyfills in code that needs to run both in the browser and on node.by anamexis 4y agoI've used globalThis for polyfills in code that needs to run both in the browser and on node.