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.
- Host: GitHub
- URL: https://github.com/fabiospampinato/json-clone-deep
- Owner: fabiospampinato
- License: mit
- Created: 2020-02-09T00:47:53.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-18T00:14:39.000Z (over 1 year ago)
- Last Synced: 2025-11-06T18:27:23.131Z (8 months ago)
- Topics: clone, deep, json
- Language: JavaScript
- Size: 9.77 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
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