evolve
v0.9.6arrow_drop_downv0.9.6
STATUS
Passing
DOWNLOADS
2
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
869 B
Creates a new object by recursively evolving a shallow copy of `object`,
according to the `transformation` functions.
1 contributor
Like
Install evolve as a package?
Copied
npm i @bit/justin-capalbo.ramda.evolve
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
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
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.