1.0.1 • Published 6 years ago

obj-copy v1.0.1

Weekly downloads
9
License
-
Repository
-
Last release
6 years ago

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