0.1.5 • Published 10 years ago

sak-clone v0.1.5

Weekly downloads
3
License
MIT
Repository
github
Last release
10 years ago

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); // false

Params

NameDescriptionType
objAn object or any variable that needs to be cloned.Object

Return

DescriptionType
A clone of the original object.Object
0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago