Creates a (deep) clone of the object
const a = { foo: 'bar', obj: { a: 1, b: 2 } };const b = clone(a, true); // a !== b, a.obj !== b.obj
Optional
Generated using TypeDoc
Creates a (deep) clone of the object
Example