is-defined

Check if an identifier is defined

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
is-defined
201.0.08 years ago8 years agoMinified + gzip package size for is-defined in KB

Readme

is-defined Build Status
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