obclone
v2.0.0
Published
Js objects and variables clone
Downloads
4
Maintainers
Readme
obclone
obclone: Genrate deepcopy of variables
Installing
Using npm:
$ npm install obclone
Using yarn:
$ yarn add obclone
Examples
>>const clone = require("obclone");
>>var a = {"v1" : 1};
>>var b = clone(a);
>>a["v2"] = 2;
>>console.log(a)
>>{"v1" : 1, "v2" : 2}
>>console.log(b)
>>{"v1" : 1}
licence
MIT licence