$ npm install component-clone
Object clone supporting date, regexp, array and object types.
date
regexp
array
object
var obj = clone({ a: 'b', c: [ new Date(), 'tobi', 'jane' ] })
Clones obj recursively and returns it.
obj
MIT