klon0.11.0 • Public • Published
npm install klon
source is the object to be copied.
destination (optional) is the new object, where all properties from source will be copied to.
var klon =myObject1 =a: 1b: 2c:u: 14myObject2 =c:d:e: "Hello"f: "Hello";// Clonevar newObject1 = ;// Extend newObject1 with myObject2// Merge two objects into a new onevar newObject3 = ;// Clone and break circular referencesvar newObject4 = ;