Deep copy objects and arrays
JavaScript
Switch branches/tags
Latest commit 7ddd499 Aug 22, 2017 @simov simov 1.4.0
Permalink
Failed to load latest commit information.
test Improve tests Aug 22, 2017
.editorconfig Add .editorconfig Sep 4, 2015
.gitignore Ignore package-lock.json Aug 22, 2017
.travis.yml Update node version and dev dependencies Dec 17, 2016
LICENSE Update meta files Apr 25, 2016
README.md Update urls Jun 2, 2017
index.js Minor refactoring Aug 22, 2017
package.json 1.4.0 Aug 22, 2017

README.md

deep-copy

npm-version travis-ci coveralls-status

var dcopy = require('deep-copy')

// deep copy object
var copy = dcopy({a: {b: [{c: 5}]}})

// deep copy array
var copy = dcopy([1, 2, {a: {b: 5}}])

Benchmarks

Benchmarks comparing deep-copy to other libraries across all Node LTS versions.