{"_id":"koalas","_rev":"69441","name":"koalas","description":"Coalesce for JavaScript. Returns the first value that is not undefined or null.","dist-tags":{"latest":"1.0.2"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:22:59.000Z","created":"2013-12-27T15:42:31.260Z","1.0.2":"2017-04-19T13:28:46.797Z","1.0.1":"2017-02-22T02:14:46.822Z","1.0.0":"2017-02-22T01:58:43.608Z","0.1.1":"2014-09-30T16:37:59.712Z","0.0.6":"2014-03-27T02:50:46.785Z","0.0.5":"2014-03-26T21:53:18.833Z","0.0.4":"2014-03-26T18:55:10.834Z","0.0.3":"2013-12-27T16:58:02.945Z","0.0.2":"2013-12-27T15:49:39.225Z","0.0.1":"2013-12-27T15:42:31.260Z"},"users":{"chocolateboy":true},"author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"repository":{"type":"git","url":"git+https://github.com/doowb/koalas.git"},"versions":{"1.0.2":{"name":"koalas","description":"Coalesce for JavaScript. Returns the first value that is not undefined or null.","version":"1.0.2","homepage":"https://github.com/doowb/koalas","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","email":"brian.woodward@gmail.com","url":"https://twitter.com/doowb"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/doowb/koalas.git"},"bugs":{"url":"https://github.com/doowb/koalas/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp":"github:gulpjs/gulp#4.0","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.2.0"},"keywords":["check","isnull","kind","koala","koalas","null","type","type-of","typeof","undefined","util","utility","utils","value"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"d40db3625b8479160b85718e2bf5cbf34cbfb809","_id":"koalas@1.0.2","_shasum":"318433f074235db78fae5661a02a8ca53ee295cd","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.1","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"318433f074235db78fae5661a02a8ca53ee295cd","size":2793,"noattachment":false,"key":"/koalas/-/koalas-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-1.0.2.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koalas-1.0.2.tgz_1492608526077_0.8102033603936434"},"directories":{},"publish_time":1492608526797,"_cnpm_publish_time":1492608526797,"_hasShrinkwrap":false},"1.0.1":{"name":"koalas","description":"Coalesce for JavaScript. Returns the first value that is not undefined or null.","version":"1.0.1","homepage":"https://github.com/doowb/koalas","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","email":"brian.woodward@gmail.com","url":"https://github.com/doowb"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/doowb/koalas.git"},"bugs":{"url":"https://github.com/doowb/koalas/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp":"github:gulpjs/gulp#4.0","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.2.0"},"keywords":["check","isnull","kind","koala","koalas","null","type","type-of","typeof","undefined","util","utility","utils","value"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"f257088f93b037b73243db55f4a0db1089542e7e","_id":"koalas@1.0.1","_shasum":"2eab4b6147ceb769899baa647ec0277d7eeebd4a","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"2eab4b6147ceb769899baa647ec0277d7eeebd4a","size":2659,"noattachment":false,"key":"/koalas/-/koalas-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-1.0.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koalas-1.0.1.tgz_1487729686172_0.25359353446401656"},"directories":{},"publish_time":1487729686822,"_cnpm_publish_time":1487729686822,"_hasShrinkwrap":false},"1.0.0":{"name":"koalas","description":"Coalesce for JavaScript","version":"1.0.0","homepage":"https://github.com/doowb/koalas","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"contributors":[{"name":"Brian Woodward","email":"brian.woodward@gmail.com","url":"https://github.com/doowb"},{"name":"Jon Schlinkert","email":"jon.schlinkert@sellside.com","url":"http://twitter.com/jonschlinkert"}],"repository":{"type":"git","url":"git+https://github.com/doowb/koalas.git"},"bugs":{"url":"https://github.com/doowb/koalas/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"gulp":"github:gulpjs/gulp#4.0","gulp-eslint":"^3.0.1","gulp-format-md":"^0.1.11","gulp-istanbul":"^1.1.1","gulp-mocha":"^3.0.1","mocha":"^3.2.0"},"keywords":["check","isnull","kind","koala","koalas","null","type","type-of","typeof","undefined","util","utility","utils","value"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"lint":{"reflinks":true}},"gitHead":"1a373b4b80382c40644e5baf93911dec2af091c9","_id":"koalas@1.0.0","_shasum":"5a87fae14184b53d8699fea966d796ec81b9a1e2","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"5a87fae14184b53d8699fea966d796ec81b9a1e2","size":2638,"noattachment":false,"key":"/koalas/-/koalas-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koalas-1.0.0.tgz_1487728721742_0.583129561971873"},"directories":{},"publish_time":1487728723608,"_cnpm_publish_time":1487728723608,"_hasShrinkwrap":false},"0.1.1":{"name":"koalas","version":"0.1.1","description":"Coalesce for JavaScript","author":{"name":"Brian Woodward","url":"https://github.com/doowb"},"bugs":{"url":"https://github.com/doowb/koalas/issues"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/MIT"}],"main":"index.js","scripts":{"test":"mocha -R spec"},"keywords":["chainable","check","isnull","kind","koala","koalas","null","type","type-of","typeof","undefined","util","utility","utils","value"],"devDependencies":{"mocha":"*","should":"^4.0.4","verb":">= 0.2.6","verb-tag-jscomments":">= 0.2.0"},"homepage":"https://github.com/doowb/koalas","engines":{"node":">=0.10.0"},"gitHead":"b452b9670da1c8c1367d65931596d312c5382e33","_id":"koalas@0.1.1","_shasum":"56d4abfa328de5e3a585a6c5f8bfa233f14e17b7","_from":".","_npmVersion":"1.4.26","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"56d4abfa328de5e3a585a6c5f8bfa233f14e17b7","size":3892,"noattachment":false,"key":"/koalas/-/koalas-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.1.1.tgz"},"directories":{},"publish_time":1412095079712,"_cnpm_publish_time":1412095079712,"_hasShrinkwrap":false},"0.0.6":{"name":"koalas","version":"0.0.6","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","mocha":"~1.16.2","grunt-mocha-test":"~0.8.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.0","grunt-verb":"0.0.5"},"homepage":"https://github.com/doowb/koalas","_id":"koalas@0.0.6","dist":{"shasum":"93d69d607504ab7722f8ac43345ea4bc488da119","size":4702,"noattachment":false,"key":"/koalas/-/koalas-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.6.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395888646785,"_cnpm_publish_time":1395888646785,"_hasShrinkwrap":false},"0.0.5":{"name":"koalas","version":"0.0.5","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","mocha":"~1.16.2","grunt-mocha-test":"~0.8.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.0","verb":"~0.1.22","grunt-verb":"0.0.5"},"homepage":"https://github.com/doowb/koalas","_id":"koalas@0.0.5","dist":{"shasum":"a2df6066cd29cd06f9206aaba222ab48525c6a2f","size":4700,"noattachment":false,"key":"/koalas/-/koalas-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.5.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395870798833,"_cnpm_publish_time":1395870798833,"_hasShrinkwrap":false},"0.0.4":{"name":"koalas","version":"0.0.4","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","mocha":"~1.16.2","grunt-mocha-test":"~0.8.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.0","verb":"~0.1.22","grunt-verb":"0.0.5"},"homepage":"https://github.com/doowb/koalas","_id":"koalas@0.0.4","dist":{"shasum":"f142ce42b55d5b59d0e5fe7e54c3b4a23e16db38","size":4121,"noattachment":false,"key":"/koalas/-/koalas-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.4.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1395860110834,"_cnpm_publish_time":1395860110834,"_hasShrinkwrap":false},"0.0.3":{"name":"koalas","version":"0.0.3","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"grunt test"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"chai":"~1.8.1","grunt":"~0.4.2","mocha":"~1.16.2","grunt-readme":"~0.4.0","grunt-mocha-test":"~0.8.1","grunt-contrib-watch":"~0.5.3","grunt-contrib-jshint":"~0.7.0"},"readmeFilename":"README.md","_id":"koalas@0.0.3","dist":{"shasum":"4f50ed881d59d1f77474a9185e3a855255d5d725","size":4517,"noattachment":false,"key":"/koalas/-/koalas-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1388163482945,"_cnpm_publish_time":1388163482945,"_hasShrinkwrap":false},"0.0.2":{"name":"koalas","version":"0.0.2","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"mocha":"~1.16.2","chai":"~1.8.1"},"readmeFilename":"README.md","_id":"koalas@0.0.2","dist":{"shasum":"c69a506f95489fd4a9838dd8447bbe6a56e4906e","size":2449,"noattachment":false,"key":"/koalas/-/koalas-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1388159379225,"_cnpm_publish_time":1388159379225,"_hasShrinkwrap":false},"0.0.1":{"name":"koalas","version":"0.0.1","description":"Koalas is a library for doing a coalesce in JavaScript","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/doowb/koalas.git"},"keywords":["isnull","koalas","koala","null","undefined"],"author":{"name":"Brian Woodward"},"license":"MIT","bugs":{"url":"https://github.com/doowb/koalas/issues"},"devDependencies":{"mocha":"~1.16.2","chai":"~1.8.1"},"readmeFilename":"README.md","_id":"koalas@0.0.1","dist":{"shasum":"0b386786548aa2f59af0f4aa111ab815eafb5dcf","size":2391,"noattachment":false,"key":"/koalas/-/koalas-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/koalas/download/koalas-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"publish_time":1388158951260,"_cnpm_publish_time":1388158951260,"_hasShrinkwrap":false}},"readme":"# koalas [![NPM version](https://img.shields.io/npm/v/koalas.svg?style=flat)](https://www.npmjs.com/package/koalas) [![NPM monthly downloads](https://img.shields.io/npm/dm/koalas.svg?style=flat)](https://npmjs.org/package/koalas)  [![NPM total downloads](https://img.shields.io/npm/dt/koalas.svg?style=flat)](https://npmjs.org/package/koalas) [![Linux Build Status](https://img.shields.io/travis/doowb/koalas.svg?style=flat&label=Travis)](https://travis-ci.org/doowb/koalas) [![Windows Build Status](https://img.shields.io/appveyor/ci/doowb/koalas.svg?style=flat&label=AppVeyor)](https://ci.appveyor.com/project/doowb/koalas)\n\n> Coalesce for JavaScript. Returns the first value that is not undefined or null.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save koalas\n```\n\n## Usage\n\n```js\nvar koalas = require('koalas');\n```\n\n## API\n\n### [koalas](index.js#L27)\n\nCoalesce function to find the first valid value. A valid value is one that is not undefined, not null and not NaN (not a number). If no values are valid, then the last argument is returned.\n\n**Params**\n\n* `arguments` **{Mixed}**: Pass in any amount of arguments.\n* `returns` **{Mixed}**: First valid value.\n\n**Example**\n\n```js\nconsole.log(koalas(undefined, null, NaN, 'a', 'b'));\n//=> 'a'\n\nconsole.log(koalas(undefined, null, NaN, {a: 'b'}, 'b'));\n//=> {a: 'b'}\n\nconsole.log(koalas(undefined, null, NaN, ['a', 'b', 'c'], {a: 'b'}, 'b'));\n//=> ['a', 'b', 'c']\n\nconsole.log(koalas(undefined, NaN, null));\n//=> null\n```\n\n## About\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** | \n| --- | --- |\n| 39 | [doowb](https://github.com/doowb) |\n| 1 | [jonschlinkert](https://github.com/jonschlinkert) |\n\n### Building docs\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n### Running tests\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n### Author\n\n**Brian Woodward**\n\n* [github/doowb](https://github.com/doowb)\n* [twitter/doowb](https://twitter.com/doowb)\n\n### License\n\nCopyright © 2017, [Brian Woodward](https://github.com/doowb).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 18, 2017._","_attachments":{},"homepage":"https://github.com/doowb/koalas","bugs":{"url":"https://github.com/doowb/koalas/issues"},"license":"MIT"}