is-global-object

1.0.0 • Public • Published

is-global-object

Returns true if a value is the global or window object of the current context.

Installation

Requires Node.js 4.0.0 or above.

npm install is-global-object --save

The module exports a single function.

Usage Example

const isGlobalObject = require('is-global-object')
 
isGlobalObject(global) // true
isGlobalObject({}) // false

Package Sidebar

Install

npm i is-global-object

Weekly Downloads

2,209

Version

1.0.0

License

MIT

Last publish

Collaborators

  • lamansky