obj-copy
install
npm install obj-copy
Description
Creates a deep copy of an object (not a refernce to the object)
Usage Example
var objCopy = require('obj-copy');
var a = {
a: {
a: {
a: {
},
b: true,
c: false,
d: null
},
z: []
},
k: 45
}
var copy = objCopy(a)
variable: "copy" is an exact copy of a