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

utils/dissoc-path
v1.1.0
1.1.0
1.0.0
Makes a shallow clone of an object, omitting the property at the given path

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

dissocPath (path:Array, obj:Object) : Object

Makes a shallow clone of an object, omitting the property at the given path. Note that this copies and flattens prototype properties onto the new object as well. All non-primitive properties are copied by reference.

Example

R.dissocPath(['a', 'b', 'c'], {a: {b: {c: 42}}}); //=> {a: {b: {}}}

Arguments

path: Array

The path to the value to omit

obj: Object

The object to clone

Returns

Object

A new object without the property at path