component-clone

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
component-clone
1940.2.36 years ago9 years agoMinified + gzip package size for component-clone in KB

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