deep-copy

Deep copy any object or array.

npm install deep-copy
1 downloads in the last day
23 downloads in the last week
128 downloads in the last month

deep-copy

Deep copy any object or array.

Install

Note that you can use this module with commonjs (nodejs), amdjs or as a global object.

$ bower install deep-copy

or

$ npm install deep-copy

Usage

Pass in some object.

var copy = dcopy({a:{b:[{c:5}]}});

Or an array.

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

Tests

http://simov.github.io/deep-copy/test/

npm loves you