loading...

re: globalThis is coming to JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: "As consistent as it can get". Different global objects will expose very different APIs, so now instead of having to check if (typeof global !== '...

Yeah I guess that was my concern. If the different 'this' you're targeting can have radically different APIs, I would wonder why target them with a single globalThis instead of individually. I figured I was missing something..

code of conduct - report abuse