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

utils/merge-right
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Create 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-right in your project
npm i @bit/bit.ramda.utils.merge-right
Copied

mergeRight (l:Object, r:Object) : Object

Create 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, the value from the second object will be used.

Example

R.mergeRight({ 'name': 'fred', 'age': 10 }, { 'age': 40 });
     //=> { 'name': 'fred', 'age': 40 }

     var withDefaults = R.mergeRight({x: 0, y: 0});
     withDefaults({y: 2}); //=> {x: 0, y: 2}

Arguments

l: Object

r: Object

Returns

Object