reject

v0.9.6arrow_drop_down
v0.9.6
STATUS
Passing
DOWNLOADS
17
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
2 KB
The complement of [`filter`](#filter).
1 contributor
Install reject as a package?
Copied
npm i @bit/justin-capalbo.ramda.reject
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
No preview available
modifieddraft
chevron_left
chevron_right
reject (
pred:Function,
filterable:Array
) : Array

The complement of filter.

Acts as a transducer if a transformer is given in list position. Filterable objects include plain objects or any object that has a filter method such as Array.

Example
const isOdd = (n) => n % 2 === 1;

     R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]

     R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}
Arguments
pred: Function
filterable: Array
Returns
Array

Help and resources