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

utils/assoc
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Makes a shallow clone of an object, setting or overriding the specified

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

assoc (prop:String, val:*, obj:Object) : Object

Makes a shallow clone of an object, setting or overriding the specified property with the given value. Note that this copies and flattens prototype properties onto the new object as well. All non-primitive properties are copied by reference.

Example

R.assoc('c', 3, {a: 1, b: 2}); //=> {a: 1, b: 2, c: 3}

Arguments

prop: String

The property name to set

val: *

The new value

obj: Object

The object to clone

Returns

Object

A new object equivalent to the original except for the changed property.