# clone-component

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

Latest version **0.2.2** (published 2014-03-28) · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2014-03-28 |
| First published | 2012-10-18 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Maintainers | rauchg |

## Links

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

## Dependencies (1)

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

## Recent versions

- 0.2.2 (latest) — 2014-03-28
- 0.2.0 — 2014-01-27
- 0.1.0 — 2012-10-18

## 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/clone-component · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
