bigint-crypto-utils/node_modules/reduce-without
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-without

Example

const without = require('reduce-without')

without(toRemove) ⇒ Array

Returns a new array with the same content as the input minus the specified values.

Kind: Exported function

Param Type Description
toRemove any | Array.<any> one, or more test-value queries

Example

> [ 1, 2, 3 ].reduce(without(2))
[ 1, 3 ]

> [ 1, 2, 3 ].reduce(without([ 2, 3 ]))
[ 1 ]

> data = [
    { name: "Dana", age: 30 },
    { name: "Yana", age: 20 },
    { name: "Zhana", age: 10 }
]
> data.reduce(without({ name: /ana/ }))
[]

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