An open API service indexing awesome lists of open source software.

https://github.com/fabiospampinato/json-clone-deep

Deep cloning based on JSON.
https://github.com/fabiospampinato/json-clone-deep

clone deep json

Last synced: 4 months ago
JSON representation

Deep cloning based on JSON.

Awesome Lists containing this project

README

          

# JSON Clone Deep

Deep cloning based on JSON.

It can only deep-clone JSON-serializable values.

## Install

```sh
npm install json-clone-deep
```

## Usage

```ts
import cloneDeep from 'json-clone-deep';

// Let's clone an object

cloneDeep ({ foo: 123, bar: [1, 2, '3'] }); // => { foo: 123, bar: [1, 2, '3'] }
```

## License

MIT © Fabio Spampinato