Skip to content

evlun/copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

Create deep clones of JavaScript objects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published