such as :
Client side uses: windows,frames,this
web workers uses: self
node js uses: global
now all environment can use simple globalThis .
Also you can watch my video on this topic.