Package Exports
- deep-clone
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (deep-clone) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
deep-clone
Stand-alone deep cloning of Arrays and Objects
$ npm install --save deep-clone
Recursively clone nested objects and arrays containing primitive data or objects and arrays containing primitive data.
import deepClone from 'deep-clone'
const obj = { /* ... */ }
const cloneOfObj = deepClone(obj)
const arr = [ /* ... */ ]
const cloneOfArr = deepClone(arr)
Other options: