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

utils/evolve
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Creates a new object by recursively evolving a shallow copy of `object`,

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

evolve (transformations:Object, object:Object) : Object

Creates a new object by recursively evolving a shallow copy of object, according to the transformation functions. All non-primitive properties are copied by reference.

A transformation function will not be invoked if its corresponding key does not exist in the evolved object.

Example

var tomato  = {firstName: '  Tomato ', data: {elapsed: 100, remaining: 1400}, id:123};
     var transformations = {
       firstName: R.trim,
       lastName: R.trim, // Will not get invoked.
       data: {elapsed: R.add(1), remaining: R.add(-1)}
     };
     R.evolve(transformations, tomato); //=> {firstName: 'Tomato', data: {elapsed: 101, remaining: 1399}, id:123}

Arguments

transformations: Object

The object specifying transformation functions to apply to the object.

object: Object

The object to be transformed.

Returns

Object

The transformed object.