0.2.2 • Published 10 years ago

clone-component v0.2.2

Weekly downloads
848
License
-
Repository
github
Last release
10 years ago

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