clone-component

v0.1.0
Object clone supporting `date`, `regexp`, `array` and `object` types.

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

Metadata

  • Unknown
  • Whatever
  • Unknown
  • released 10/18/2012

Downloads

Maintainers