is-global-object

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-global-object
001.0.05 years ago5 years agoMinified + gzip package size for is-global-object in KB

Readme

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