Share your code. Components are building blocks, you are the architect.

global/clone-data-object
v0.0.2
0.0.2
0.0.1
MIT
PUBLIC
0
0     DEPENDENCIES
Build: pass
BuildPass
Build Status: pass
# Clones a data object.
Gravatar for undefined
tomlandau
Contributors
Gravatar for undefined
1

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use global/clone-data-object in your project
npm i @bit/tomlandau.simple-js.global.clone-data-object
Copied

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