IOTConnect-Web/node_modules/ext/docs/global-this.md

10 lines
309 B
Markdown
Raw Normal View History

2024-05-09 01:49:52 +00:00
# `globalThis` _(ext/global-this)_
Returns global object. Resolve native [globalThis](https://github.com/tc39/proposal-global) if implemented, otherwise fallback to internal resolution of a global object.
```javascript
const globalThis = require("ext/global-this");
globalThis.Array === Array; // true
```