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

utils/merge-with
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Creates a new object with the own properties of the two provided objects

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

mergeWith (fn:Function, l:Object, r:Object) : Object

Creates a new object with the own properties of the two provided objects. If a key exists in both objects, the provided function is applied to the values associated with the key in each object, with the result being used as the value associated with the key in the returned object.

Example

R.mergeWith(R.concat,
                 { a: true, values: [10, 20] },
                 { b: true, values: [15, 35] });
     //=> { a: true, b: true, values: [10, 20, 15, 35] }

Arguments

fn: Function

l: Object

r: Object

Returns

Object