JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7873
  • Score
    100M100P100Q122463F
  • License MIT

Stand-alone deep cloning of Arrays and Objects

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

Build Status

$ 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: