is-defined
Check if an identifier is defined
Last updated 10 years ago by bendrucker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ gnpm install is-defined 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (10 years ago)

1 Versions

  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 1
Dependencies (0)
None
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |