existential
v1.0.3
Published
The missing existential operator for JavaScript. Returns true unless a variable is null or undefined
Downloads
7,041
Maintainers
Readme
Existential
The missing existential operator for JavaScript. Returns true unless a variable is
null
orundefined
.
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