JSPM

is-defined

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24241
  • Score
    100M100P100Q159598F
  • License MIT

Check if an identifier is defined

Package Exports

  • is-defined

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (is-defined) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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