global/clone-data-object
v0.0.2
0.0.2
0.0.1
Collaborators
Gravatar for undefined
1
MIT
PUBLIC
0
0     DEPENDENCIES
BuildPass

Clones a data object.

Use global/clone-data-object in your project
npm i @bit/tomlandau.simple-js.global.clone-data-object

Clones a data object.

Object properties will be copied, but functions won’t be duplicated.

cloneDataObject (original:*) : *

Argument

original: *

Returns

*

Test Summary


cloneDataObject should return undefined if original is undefinedPass
cloneDataObject should return a copy of the object with its first-level propertiesPass
cloneDataObject should return a deep copy of the object with its second-level propertiesPass