Have ideas to improve npm?Join in the discussion! »

simple-deep-clone

0.0.3 • Public • Published

deep-clone

NPM version NPM downloads

Simple deep clone JavaScript native types, like Object, Array, and primitives.

Install

Install with npm:

$ npm install --save simple-deep-clone

Usage

const { deepClone } = require('simple-deep-clone');
 
const profile = { name: 'SaLamTam' };
const newProfile = deepClone(profile);
 
newProfile.project = 'deep-clone';
 
console.log('Old Profile:', profile);
console.log('New Profile:', newProfile);

Install

npm i simple-deep-clone

DownloadsWeekly Downloads

4

Version

0.0.3

License

MIT

Unpacked Size

4.67 kB

Total Files

5

Last publish

Collaborators

  • avatar