Closed davidchambers closed 6 months ago
I find globalThis.Foo != null clearer than typeof Foo !== 'undefined' && Foo != null, and it has the added benefit of not concerning ESLint.
globalThis.Foo != null
typeof Foo !== 'undefined' && Foo != null
I find
globalThis.Foo != null
clearer thantypeof Foo !== 'undefined' && Foo != null
, and it has the added benefit of not concerning ESLint.