simov / deep-copy

Deep copy objects and arrays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 comparing deep-copy to other libraries across all Node LTS versions.

About

Deep copy objects and arrays

License:MIT License


Languages

Language:JavaScript 100.0%