Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
object deep clone component
JavaScript
branch: master
Failed to load latest commit information.
test add tests around cloning functions
.gitignore initial commit
History.md 0.2.2
Makefile initial commit
Readme.md Release 0.1.0
component.json
index.js fix require() as per @defunctzombie's suggestion
package.json 0.2.2

Readme.md

clone

Object clone supporting date, regexp, array and object types.

Example

var obj = clone({
  a: 'b',
  c: [
    new Date(),
    'tobi',
    'jane'
  ]
})

API

clone(obj)

Clones obj recursively and returns it.

License

MIT

Something went wrong with that request. Please try again.