# component-clone

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

Latest version **0.2.3** (published 2016-07-21) · 0 weekly downloads

## Install

```sh
npm install component-clone
pnpm add component-clone
yarn add component-clone
bun add component-clone
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2016-07-21 |
| First published | 2014-03-02 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | jongleberry, tootallnate, tjholowaychuk, juliangruber, yields, ianstormtaylor, timoxley, mattmueller, jonathanong, queckezz, anthonyshort, nami-doc, dominicbarnes, clintwood, thehydroimpulse, stephenmathieson, trevorgerhardt, timaschew, hughsk, dfcreative |

## Links

- npm: https://www.npmjs.com/package/component-clone
- Repository: https://github.com/component/clone
- Homepage: https://github.com/component/clone#readme
- Issues: https://github.com/component/clone/issues
- npm.io page: https://npm.io/package/component-clone

## Dependencies (1)

- [component-type](https://npm.io/package/component-type.md) *

## Recent versions

- 0.2.3 (latest) — 2016-07-21
- 0.2.2 — 2014-03-07
- 0.2.1 — 2014-03-02

## README

# clone

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

## Example

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

## API

### clone(obj)

  Clones `obj` recursively and returns it.

## License

MIT

---
_Source: https://npm.io/package/component-clone · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
