json-clone-deep
v2.0.1
Published
Deep cloning based on JSON.
Readme
JSON Clone Deep
Deep cloning based on JSON.
It can only deep-clone JSON-serializable values.
Install
npm install json-clone-deepUsage
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
