clone-component
Object clone supporting `date`, `regexp`, `array` and `object` types.
Last updated 13 years ago by rauchg .
Repository · Bugs · Original npm · Tarball · package.json
$ npm 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 (13 years ago)

3 Versions

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

© 2010 - cnpmjs.org x YWFE | Home | YWFE