clone-component
Object clone supporting `date`, `regexp`, `array` and `object` types.
Last updated 12 years ago by rauchg .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install clone-component 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.2.2                                ...           latest (12 years ago)

3 Versions

  • 0.2.2                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |