1.0.0 • Published 8 years ago
is-global-object v1.0.0
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 --saveThe module exports a single function.
Usage Example
const isGlobalObject = require('is-global-object')
isGlobalObject(global) // true
isGlobalObject({}) // false1.0.0
8 years ago