Share your code. Components are building blocks, you are the architect.

utils/filter
v1.1.0
1.1.0
1.0.0
Takes a predicate and a `Filterable`, and returns a new filterable of the

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/filter in your project
npm i @bit/bit.ramda.utils.filter
Copied

filter (pred:Function, filterable:Array) : Array

Takes a predicate and a Filterable, and returns a new filterable of the same type containing the members of the given filterable which satisfy the given predicate. Filterable objects include plain objects or any object that has a filter method such as Array.

Dispatches to the filter method of the second argument, if present.

Acts as a transducer if a transformer is given in list position.

Example

var isEven = n => n % 2 === 0;

     R.filter(isEven, [1, 2, 3, 4]); //=> [2, 4]

     R.filter(isEven, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}

Arguments

pred: Function

filterable: Array

Returns

Array

Filterable