Package Exports
- clone-deep
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (clone-deep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
clone-deep 
Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.
Based on mout's implementation of deepClone. The instanceClone function is invoked to clone objects that are not "plain" objects (as defined by isPlainObject) if it is provided. If instanceClone is not specified, it will not attempt to clone non-plain objects, and will copy the object reference.
Install
Install with npm:
npm i clone-deep --save-devRun tests
npm testUsage
var cloneDeep = require('clone-deep');Other javascript/node.js utils
Other projects that I maintain:
- assemble
- verb
- less.js
- handlebars-helpers
- arr
- arr-diff
- array-last
- array-slice
- array-sum
- arrayify-compact
- compact-object
- delete
- for-in
- for-own
- has-any
- has-value
- is-number
- is-plain-object
- mixin-deep
- mixin-object
- object-length
- omit-empty
- reduce-object
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license
This file was generated by verb-cli on October 02, 2014.