clone-component

0.2.2 • Public • Published

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

Dependencies (1)

Dev Dependencies (2)

Package Sidebar

Install

npm i clone-component

Weekly Downloads

2,870

Version

0.2.2

License

none

Last publish

Collaborators

  • rauchg