existential-default-deep
v1.0.0
Published
Check for the existential value of a variable. Assign value by default.
Downloads
11
Maintainers
Readme
existential-default-deep
Deep version of existential-default.
Install
npm install existential-default-deep
If you want to use in the browser (powered by Browserify):
bower install existential-default-deep --save
and later link in your HTML:
<script src="bower_components/existential-default-deep/dist/existential-default-deep.js"></script>
Usage
var existsDefault = require('existential-default-deep');
var hello = null;
hello = existsDefault(hello, 'world');
console.log(hello);
// => 'world'
License
MIT © Kiko Beats