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

utils/set
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Returns the result of "setting" the portion of the given data structure

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

set (lens:Lens, v:*, x:*) : *

Returns the result of “setting” the portion of the given data structure focused by the given lens to the given value.

Example

var xLens = R.lensProp('x');

     R.set(xLens, 4, {x: 1, y: 2});  //=> {x: 4, y: 2}
     R.set(xLens, 8, {x: 1, y: 2});  //=> {x: 8, y: 2}

Arguments

lens: Lens

v: *

x: *

Returns

*