@kamyar-nemati/replica
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

Replica

JavaScript Object Replicator

Overview

Replica is a JavaScript library that provides a way to clone objects. Nested properties such as literals, arrays, objects, and functions are covered.

Usage

  1. Install the package npm i @kamyar-nemati/replica
  2. Import the package import { deepCopy } from '@kamyar-nemati/replica';
  3. Finally:
let cloneObject = Object();
// copying 'originalObject' into 'cloneObject'
deepCopy(cloneObject, originalObject);
/**
 * clone object's properties will be 
 * independent from originla object.
 */

Package Sidebar

Install

npm i @kamyar-nemati/replica

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

4.5 kB

Total Files

6

Last publish

Collaborators

  • kamyar-nemati