1.0.1 • Published 5 years ago

@kamyar-nemati/replica v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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.
 */