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

utils/pick-by
v1.0.0
1.0.0
MIT
PUBLIC
0
1     DEPENDENCIES
Build: none
BuildNone
Returns a partial copy of an object containing only the keys that satisfy

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/pick-by in your project
npm i @bit/bit.ramda.utils.pick-by
Copied

pickBy (pred:Function, obj:Object) : Object

Returns a partial copy of an object containing only the keys that satisfy the supplied predicate.

Example

var isUpperCase = (val, key) => key.toUpperCase() === key;
     R.pickBy(isUpperCase, {a: 1, b: 2, A: 3, B: 4}); //=> {A: 3, B: 4}

Arguments

pred: Function

A predicate to determine whether or not a key should be included on the output object.

obj: Object

The object to copy from

Returns

Object

A new object with only properties that satisfy `pred` on it.