JSPM

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

The missing existential operator for JavaScript. Returns true unless a variable is null or undefined

Package Exports

  • existential

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 (existential) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Existential

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

The missing existential operator for JavaScript. Returns true unless a variable is null or undefined.

Install

npm install existential

If you want to use in the browser (powered by Browserify):

bower install existential --save

and later link in your HTML:

<script src="bower_components/existential/dist/existential.js"></script>

Usage

var exists = require('existential');

console.log(exists(null));
// => false

console.log(exists('hello world'));
// => true

License

MIT © Kiko Beats