Skip to content

Deep cloning based on JSON.

License

Notifications You must be signed in to change notification settings

fabiospampinato/json-clone-deep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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