clone-data-object

v0.0.2arrow_drop_down
v0.0.2
v0.0.1
STATUS
Passing
DOWNLOADS
3
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
496 B
# Clones a data object.
1 contributor
Install clone-data-object as a package?
Copied
npm i @bit/tomlandau.simple-js.global.clone-data-object
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right

Clones a data object.

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

Test Summary

cloneDataObject should return undefined if original is undefined

Pass

cloneDataObject should return a copy of the object with its first-level properties

Pass

cloneDataObject should return a deep copy of the object with its second-level properties

Pass
Help and resources