globalthis-polyfill
Version:
Polyfill foe globalThis
1 lines • 326 B
JavaScript
!function(){var o=[].constructor||Array;function t(t){return t.Array==o}if("object"!=typeof globalThis||!t(globalThis)){var l="object"==typeof window&&t(window)?window:"object"==typeof global&&t(global)?global:"object"==typeof self&&t(self)?self:"object"==typeof this&&t(this)?this:Function("return this")();l.globalThis=l}}()