is-defined
v1.0.0
Published
Check if an identifier is defined
Downloads
111,669
Readme
is-defined
Check if an identifier is defined
Install
$ npm install --save is-defined
Usage
var isDefined = require('is-defined')
isDefined('window')
//=> typeof window !== 'undefined'
API
isDefined(identifier)
-> string
identifier
Required
Type: string
A JavaScript identifier.
License
MIT © Ben Drucker