{"_id":"arrayify-compact","_rev":"67744","name":"arrayify-compact","description":"Casts the given value to a flatten array, and removes falsey items (similar to lodash compact).","dist-tags":{"latest":"0.2.0","patch":"0.1.1"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:22:32.000Z","created":"2014-07-07T00:39:52.885Z","0.1.1":"2019-12-04T16:03:10.503Z","0.2.0":"2015-06-20T03:49:20.415Z","0.1.0":"2014-07-07T00:39:52.885Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arrayify-compact.git"},"versions":{"0.1.1":{"name":"arrayify-compact","description":"Similar to Lo-Dash's compact method, but coerces values to arrays first, then returns a flattened array with all falsey values removed. The values false, null, 0, \"\", undefined, and NaN are all falsey.","version":"0.1.1","homepage":"https://github.com/jonschlinkert/arrayify-compact","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arrayify-compact.git"},"bugs":{"url":"https://github.com/jonschlinkert/arrayify-compact/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/arrayify-compact/blob/master/LICENSE-MIT"}],"keywords":["array","arrayify","boolean","compact","falsey","flat","flatten","flattened","to-array","toArray","values"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":">= 0.2.6","chai":">= 1.9.1","mocha":"*"},"dependencies":{"array-flatten":"^2.1.2"},"readmeFilename":"README.md","gitHead":"8adf8ad0213b9b82f8314f71f33b6214c0f6f3ef","_id":"arrayify-compact@0.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","_npmUser":{"name":"doowb","email":"brian.woodward@gmail.com"},"dist":{"shasum":"64f0214073dd8b8cfc9113b77558c633c801ff78","size":2439,"noattachment":false,"key":"/arrayify-compact/-/arrayify-compact-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/arrayify-compact/download/arrayify-compact-0.1.1.tgz"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/arrayify-compact_0.1.1_1575475390336_0.703590299225173"},"_hasShrinkwrap":false,"publish_time":1575475390503,"_cnpm_publish_time":1575475390503},"0.2.0":{"name":"arrayify-compact","description":"Casts the given value to a flatten array, and removes falsey items (similar to lodash compact).","version":"0.2.0","homepage":"https://github.com/jonschlinkert/arrayify-compact","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arrayify-compact.git"},"bugs":{"url":"https://github.com/jonschlinkert/arrayify-compact/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"devDependencies":{"mocha":"^2.2.5","verb":"^0.8.6"},"dependencies":{"arr-flatten":"^1.0.1"},"verbiage":{"related":{"description":"Other utils for working with arrays.","list":["arr-flatten","arr-reduce","arr-pluck","arr-map","arr-union","array-unique","utils"]}},"keywords":["array","arrayify","boolean","compact","falsey","flat","flatten","flattened","to-array","toArray","values"],"gitHead":"466fdfdc6c3bbdc78a89a2d95f6e21665b2ce4a5","_id":"arrayify-compact@0.2.0","scripts":{},"_shasum":"459170e155ca12bb514484839c9d71507c80ec4d","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"459170e155ca12bb514484839c9d71507c80ec4d","size":2237,"noattachment":false,"key":"/arrayify-compact/-/arrayify-compact-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arrayify-compact/download/arrayify-compact-0.2.0.tgz"},"directories":{},"publish_time":1434772160415,"_cnpm_publish_time":1434772160415,"_hasShrinkwrap":false},"0.1.0":{"name":"arrayify-compact","description":"Similar to Lo-Dash's compact method, but coerces values to arrays first, then returns a flattened array with all falsey values removed. The values false, null, 0, \"\", undefined, and NaN are all falsey.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/arrayify-compact","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/arrayify-compact.git"},"bugs":{"url":"https://github.com/jonschlinkert/arrayify-compact/issues"},"licenses":[{"type":"MIT","url":"https://github.com/jonschlinkert/arrayify-compact/blob/master/LICENSE-MIT"}],"keywords":["array","arrayify","boolean","compact","falsey","flat","flatten","flattened","to-array","toArray","values"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"verb":">= 0.2.6","chai":">= 1.9.1","mocha":"*"},"dependencies":{"array-flatten":">= 0.0.2"},"_id":"arrayify-compact@0.1.0","_shasum":"b86df4dadcfc236a4a404f0247940b7f73b3613e","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"doowb","email":"brian.woodward@gmail.com"},{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"b86df4dadcfc236a4a404f0247940b7f73b3613e","size":2791,"noattachment":false,"key":"/arrayify-compact/-/arrayify-compact-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/arrayify-compact/download/arrayify-compact-0.1.0.tgz"},"directories":{},"publish_time":1404693592885,"_cnpm_publish_time":1404693592885,"_hasShrinkwrap":false}},"readme":"# arrayify-compact [![NPM version](https://badge.fury.io/js/arrayify-compact.svg)](http://badge.fury.io/js/arrayify-compact)\n\n> Casts the given value to a flatten array, and removes falsey items (similar to lodash compact).\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i arrayify-compact --save\n```\n\nInstall with [bower](http://bower.io/)\n\n```sh\n$ bower install arrayify-compact --save\n```\n\n## Usage\n\n```js\nvar arrayify = require('arrayify-compact');\narrayify('a');\n//=> ['a']\n\narrayify(['a', 'b', ['c', ['d']]]);\n//=> ['a', 'b', 'c', 'd']\n\narrayify(['a', 'b', ['c', ['d'], null, false, 0, NaN, '', [], undefined]]);\n//=> ['a', 'b', 'c', 'd']\n```\n\n## Related\n\nOther utils for working with arrays.\n\n* [arr-flatten](https://github.com/jonschlinkert/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten.\n* [arr-reduce](https://github.com/jonschlinkert/arr-reduce): Fast array reduce that also loops over sparse elements.\n* [arr-pluck](https://github.com/jonschlinkert/arr-pluck): Retrieves the value of a specified property from all elements in the collection.\n* [arr-map](https://github.com/jonschlinkert/arr-map): Faster, node.js focused alternative to JavaScript's native array map.\n* [arr-union](https://github.com/jonschlinkert/arr-union): Combines a list of arrays, returning a single array with unique values, using strict equality… [more](https://github.com/jonschlinkert/arr-union)\n* [array-unique](https://github.com/jonschlinkert/array-unique): Return an array free of duplicate values. Fastest ES5 implementation.\n* [utils](https://github.com/jonschlinkert/utils): Fast, generic JavaScript/node.js utility functions.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/arrayify-compact/issues/new)\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on June 19, 2015._\n","_attachments":{},"homepage":"https://github.com/jonschlinkert/arrayify-compact","bugs":{"url":"https://github.com/jonschlinkert/arrayify-compact/issues"},"license":"MIT"}