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

utils/merge-deep-left
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 first object merged with

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

mergeDeepLeft (lObj:Object, rObj:Object) : Object

Creates a new object with the own properties of the first object merged with the own properties of the second object. If a key exists in both objects:

  • and both values are objects, the two values will be recursively merged
  • otherwise the value from the first object will be used.

Example

R.mergeDeepLeft({ name: 'fred', age: 10, contact: { email: 'moo@example.com' }},
                     { age: 40, contact: { email: 'baa@example.com' }});
     //=> { name: 'fred', age: 10, contact: { email: 'moo@example.com' }}

Arguments

lObj: Object

rObj: Object

Returns

Object