{"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","tarball":"http://registry-npm.ywwl.com/koalas/download/koalas-1.0.0.tgz","integrity":"sha512-TpP0F4AoC92Gij8cqnEFK990P/mV8YrhA2KtmiJiyC10MPT6s5S5BzNMrqkK0NUB+fStiHcF4OWU1vAaH4XFzQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJSdHtc4ZU8YKRyMMzzZg/r+iPuNqU4/jG3W3kNQvZ3QIgBGuRwr3GczdG6Nd6WjU1YEn3E5jdVjuDedNh8ms3Rb8="}],"size":2638,"noattachment":false,"key":"/koalas/-/koalas-1.0.0.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/koalas-1.0.0.tgz_1487728721742_0.583129561971873"},"directories":{},"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._","publish_time":1487728723608,"_cnpm_publish_time":1487728723608,"dist-tags":{"latest":"1.0.2"}}