component-clone
v0.2.3
Published
Object clone supporting `date`, `regexp`, `array` and `object` types.
Downloads
116,876
Maintainers
Keywords
Readme
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