existential

1.0.3 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1,447
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1,447
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0
  • 0.0.0
    0

Package Sidebar

Install

npm i existential

Weekly Downloads

1,447

Version

1.0.3

License

MIT

Last publish

Collaborators

  • kikobeats