{"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","tarball":"http://registry-npm.ywwl.com/koalas/download/koalas-1.0.2.tgz","integrity":"sha512-RYhBbYaTTTHId3l6fnMZc3eGQNW6FVCqMG6AMwA5I1Mafr6AflaXeoi6x3xQuATRotGYRLk6+1ELZH4dstFNOA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA9yFkD9uANHB0PQ1YsLUOtORmy2PhZCqQoNud3bx5HdAiBzXnYyn0gTUfcxkD54mZbwFTYcOOmLpba6ygQpNjVWFg=="}],"size":2793,"noattachment":false,"key":"/koalas/-/koalas-1.0.2.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/koalas-1.0.2.tgz_1492608526077_0.8102033603936434"},"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":1492608526797,"_cnpm_publish_time":1492608526797,"dist-tags":{"latest":"1.0.2"}}