{"_id":"reduce-extract","_rev":"3-5770db3ae1bd6f0565222a3ca9514985","name":"reduce-extract","description":"reduce-extract","dist-tags":{"latest":"1.0.0"},"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","tarball":"https://registry.npmjs.org/reduce-extract/-/reduce-extract-1.0.0.tgz","integrity":"sha512-QF8vjWx3wnRSL5uFMyCjDeDc5EBMiryoT9tz94VvgjKfzecHAVnqmXAwQDcr7X4JmLc2cjkjFGCVzhMqDjgR9g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC3UjbBE5UvEsRc+ldwx+1OCA6CLtlUuqpJw3zP2DH+2AiBoj2lWyh0f1EbU2KS6Y966XFbnPCkeZE2raSj246oSsQ=="}]},"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"}}},"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","maintainers":[{"name":"75lb","email":"75pound@gmail.com"}],"time":{"modified":"2022-06-26T09:54:42.929Z","created":"2016-02-25T14:56:44.911Z","1.0.0":"2016-02-25T14:56:44.911Z"},"homepage":"https://github.com/75lb/reduce-extract#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/75lb/reduce-extract.git"},"author":{"name":"Lloyd Brookes","email":"75pound@gmail.com"},"bugs":{"url":"https://github.com/75lb/reduce-extract/issues"},"license":"MIT","readmeFilename":"README.md"}