{"_id":"reduce-extract","_rev":"50837","name":"reduce-extract","description":"reduce-extract","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2021-06-03T10:15:32.000Z","created":"2016-02-25T14:56:44.911Z","1.0.0":"2016-02-25T14:56:44.911Z"},"users":{},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/75lb/reduce-extract.git"},"versions":{"1.0.0":{"name":"reduce-extract","author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"version":"1.0.0","description":"reduce-extract","repository":{"type":"git","url":"git+https://github.com/75lb/reduce-extract.git"},"license":"MIT","main":"./lib/reduce-extract.js","keywords":[],"engines":{"node":">=0.10.0"},"scripts":{"test":"tape test/*.js","docs":"jsdoc2md2 -t jsdoc2md/README.md lib/*.js > README.md; echo"},"dependencies":{"test-value":"^1.0.1"},"devDependencies":{"tape":"^4.4.0"},"gitHead":"6482517dd0107b4adea56aa3516e586c189e44f5","bugs":{"url":"https://github.com/75lb/reduce-extract/issues"},"homepage":"https://github.com/75lb/reduce-extract#readme","_id":"reduce-extract@1.0.0","_shasum":"67f2385beda65061b5f5f4312662e8b080ca1525","_from":".","_npmVersion":"3.7.5","_nodeVersion":"5.7.0","_npmUser":{"name":"75lb","email":"75pound@gmail.com"},"dist":{"shasum":"67f2385beda65061b5f5f4312662e8b080ca1525","size":2523,"noattachment":false,"key":"/reduce-extract/-/reduce-extract-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/reduce-extract/download/reduce-extract-1.0.0.tgz"},"maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/reduce-extract-1.0.0.tgz_1456412202212_0.3022427656687796"},"directories":{},"publish_time":1456412204911,"_cnpm_publish_time":1456412204911,"_hasShrinkwrap":false}},"readme":"[![view on npm](http://img.shields.io/npm/v/reduce-extract.svg)](https://www.npmjs.org/package/reduce-extract)\n[![npm module downloads](http://img.shields.io/npm/dt/reduce-extract.svg)](https://www.npmjs.org/package/reduce-extract)\n[![Build Status](https://travis-ci.org/75lb/reduce-extract.svg?branch=master)](https://travis-ci.org/75lb/reduce-extract)\n[![Dependency Status](https://david-dm.org/75lb/reduce-extract.svg)](https://david-dm.org/75lb/reduce-extract)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard)\n\n<a name=\"module_reduce-extract\"></a>\n## reduce-extract\n\n\n<a name=\"exp_module_reduce-extract--extract\"></a>\n### extract(query) ⏏\nRemoves items from `array` which satisfy the query. Modifies the input array, returns the extracted.\n\n**Kind**: Exported function  \n\n| Param | Type    | Description                                                  |\n| ----- | ------- | ------------------------------------------------------------ |\n| query | `Array` | the input array, modified directly                           |\n|       | `any`   | if an item in the input array passes this test it is removed |\n\n\n**Example**\n```js\n> DJs = [\n    { name: \"Trevor\", sacked: true },\n    { name: \"Mike\", sacked: true },\n    { name: \"Chris\", sacked: false },\n    { name: \"Alan\", sacked: false }\n]\n\n> a.extract(DJs, { sacked: true })\n[ { name: 'Trevor', sacked: true },\n  { name: 'Mike', sacked: true } ]\n\n> DJs\n[ { name: 'Chris', sacked: false },\n  { name: 'Alan', sacked: false } ]\n```\n\n\n\n\n* * *\n\n&copy; 2016 Lloyd Brookes <75pound@gmail.com>. Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).\n","_attachments":{},"homepage":"https://github.com/75lb/reduce-extract#readme","bugs":{"url":"https://github.com/75lb/reduce-extract/issues"},"license":"MIT"}