v-deep-clone
v1.0.3
Published
Utility to deep clone objects.
Downloads
3
Readme
deep-clone
Utility to deep clone javascript objects
Install
npm install v-deep-clone
Example
var clone = require('v-deep-clone');
var object = {
a: 10,
b: "hello",
c: [
{y: 10}, {y: 20}, {y: 30}
]
};
var cloned = clone(object);