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
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