Skip to content
Create deep clones of JavaScript objects
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
copy.js
package.json
readme.mdown

readme.mdown

copy performs a deep clone on the supplied value. It currently supports circular (and non-circular) references, dates, regular expressions, functions, buffers and typed arrays. Note that copied buffers and typed arrays will still be views to the same underlying source.

Usage

require('copy')([ 1, 2, 3, { a: 'b' } ]) // -> [ 1, 2, 3, { a: 'b' } ]

Installation

npm install copy

License

Public domain.

Something went wrong with that request. Please try again.