bigint-crypto-utils/node_modules/reduce-extract
juanelas c29b520108 JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
..
jsdoc2md JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
lib JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
node_modules JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
test JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
.travis.yml JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
LICENSE JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
README.md JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00
package.json JS Standard. Some fixes with the test. Better structure 2020-04-06 13:17:22 +02:00

README.md

view on npm npm module downloads Build Status Dependency Status js-standard-style

reduce-extract

extract(query) ⏏

Removes items from array which satisfy the query. Modifies the input array, returns the extracted.

Kind: Exported function

Param Type Description
query Array the input array, modified directly
any if an item in the input array passes this test it is removed

Example

> DJs = [
    { name: "Trevor", sacked: true },
    { name: "Mike", sacked: true },
    { name: "Chris", sacked: false },
    { name: "Alan", sacked: false }
]

> a.extract(DJs, { sacked: true })
[ { name: 'Trevor', sacked: true },
  { name: 'Mike', sacked: true } ]

> DJs
[ { name: 'Chris', sacked: false },
  { name: 'Alan', sacked: false } ]

© 2016 Lloyd Brookes 75pound@gmail.com. Documented by jsdoc-to-markdown.