Package Exports
- existential-default
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-default) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
existential-default
Check for the existential value of a variable. Assign value by default.
Install
npm install existential-default
If you want to use in the browser (powered by Browserify):
bower install existential-default --save
and later link in your HTML:
<script src="bower_components/existential-default/dist/existential-default.js"></script>
Usage
var existsDefault = require('existential-default');
var hello = null;
hello = existsDefault(hello, 'world');
console.log(hello);
// => 'world'
License
MIT © Kiko Beats