deep-object-copy

1.0.0 • Public • Published

deep-object-copy

A simple library to create a deep copy of JavaScript objects.

Installation

npm install deep-object-copy

Usage

const deepCopy = require('deep-object-copy');
const original = { a: 1, b: { c: 2 } };
const copy = deepCopy(original);
console.log(copy); // { a: 1, b: { c: 2 } }
console.log(copy.b === original.b); // false

LICENSED UNDER MIT LICENSE

Readme

Keywords

none

Package Sidebar

Install

npm i deep-object-copy

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

1 kB

Total Files

3

Last publish

Collaborators

  • alechash