0.1.5 • Published 12 years ago
sak-clone v0.1.5
Util-clone
Version 0.1.5
Utility for cloning an object
Created by Thomas de Zeeuw, thomasdezeeuw@gmail.com (https://thomasdezeeuw.nl/).
Released under a MIT license.
Exports
Clone
Function
Clone an object.
Example
var obj1 = {a: 'a'}
, obj2 = clone(obj1);
console.log('obj2', obj2); // obj2 {a: 'a'}
console.log(obj1 == obj2); // falseParams
| Name | Description | Type |
|---|---|---|
| obj | An object or any variable that needs to be cloned. | Object |
Return
| Description | Type |
|---|---|
| A clone of the original object. | Object |