package
reduce-without
npm install reduce-withoutGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Example
const without = require('reduce-without')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
© 2016 Lloyd Brookes <75pound@gmail.com>. Documented by jsdoc-to-markdown.
Estimated unpacked size across 4 packages.
38.0 kB
Includes dependencies.