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

utils/clone
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Creates a deep copy of the value which may contain (nested) `Array`s and

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

clone (value:*) : *

Creates a deep copy of the value which may contain (nested) Arrays and Objects, Numbers, Strings, Booleans and Dates. Functions are assigned by reference rather than copied

Dispatches to a clone method if present.

Example

var objects = [{}, {}, {}];
     var objectsClone = R.clone(objects);
     objects === objectsClone; //=> false
     objects[0] === objectsClone[0]; //=> false

Argument

value: *

The object or array to clone

Returns

*

A deeply cloned copy of `val`