node package manager

clone-component

Object clone supporting <code>date</code>, <code>regexp</code>, <code>array</code> and <code>object</code> types.

clone

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

var obj = clone({
  a: 'b',
  c: [
    new Date(),
    'tobi',
    'jane'
  ]
})

Clones obj recursively and returns it.

MIT