包详细信息

existential-default

kikobeats2.5kMIT1.3.1

Check for the existential value of a variable. Assign value by default.

default, existence, existential, exists

自述文件

existential-default

Last version Build Status Dependency status Dev Dependencies Status NPM Status Donate

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.

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

更新日志

1.3.1 (2016-04-30)

  • Move deep in separate project (faf254a)

1.3.0 (2016-04-30)

  • move defaultsDeep into a separate namespace (387e522)

1.2.1 (2016-04-27)

1.2.0 (2016-04-27)

  • Add standard and block devDependencies version (940f6fe)
  • Extend testing build (002bd29)
  • Remove unnecessary dep (1559f6c)
  • Update test command (ba94be6)
  • chore(package): update lodash.clonedeep to version 4.3.2 (7d5b45f)

1.1.3 (2016-03-06)

chore

  • chore(package): update lodash.clonedeep to version 4.3.1 (cbd8df6)
  • chore(package): update lodash.merge to version 4.3.0 (cda4e1e)

  • Change lodash.merge → lodash.defaultsDeep (ff20334)

  • Merge pull request #5 from Kikobeats/greenkeeper-lodash.merge-4.3.0 (b38c757)
  • Merge pull request #7 from Kikobeats/greenkeeper-lodash.clonedeep-4.3.1 (a8885d9)

1.1.2 (2016-02-16)

chore

  • chore(package): update lodash.clonedeep to version 4.1.0 (998a35f)
  • chore(package): update lodash.clonedeep to version 4.2.0 (ccf9f0b)

  • Merge pull request #2 from Kikobeats/greenkeeper-lodash.clonedeep-4.1.0 (517a161)

  • Merge pull request #4 from Kikobeats/greenkeeper-lodash.clonedeep-4.2.0 (0f9d724)
  • Release 1.1.2 (5dcbbd8)
  • update lodash.merge dependency (f7d6e16)

1.1.1 (2016-02-01)

  • Fix bug related with undefined values (7ceb78a)
  • Release 1.1.1 (b3a9330)
  • update bumped settings (40cb117)

1.1.0 (2015-12-25)

1.0.2 (2015-06-22)

  • 1.0.2 releases (17b17ea)
  • Revert in favour to use existencial dep (d7a485a)

1.0.1 (2015-05-10)

1.0.0 (2015-03-17)