json-clone-deep
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

JSON Clone Deep

Deep cloning based on JSON.

It can only deep-clone JSON-serializable values.

Install

npm install json-clone-deep

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i json-clone-deep

Weekly Downloads

1

Version

2.0.1

License

MIT

Unpacked Size

2.43 kB

Total Files

5

Last publish

Collaborators

  • fabiospampinato