existential-default-deep
v1.0.0
Published
Check for the existential value of a variable. Assign value by default.
Maintainers
Readme
existential-default-deep
Deep version of existential-default.
Install
npm install existential-default-deepIf you want to use in the browser (powered by Browserify):
bower install existential-default-deep --saveand 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
