Check for the existential value of a variable. Assign value by default.
npm install existential-default!Last version





> Check for the existential value of a variable. Assign value by default.
This module have the same behavior than existential-assign where the unique change is the order of the parameters to be more natural and not align with Object.assign interface.
``bash`
npm install existential-default
If you want to use in the browser (powered by Browserify):
`bash`
bower install existential-default --save
and later link in your HTML:
`html`
`js``
var existsDefault = require('existential-default');
var hello = null;
hello = existsDefault(hello, 'world');
console.log(hello);
// => 'world'
MIT © Kiko Beats