deeperjs
v1.0.1
Published
deeper is a powerful and versatile npm package that provides an advanced deep cloning function for JavaScript objects. It supports the cloning of nested objects, arrays, and handles special cases like Date and RegExp objects. The function is designed to
Downloads
37
Readme
deeperjs
deeperjs
is a versatile npm package providing a powerful deep cloning function for JavaScript objects. It supports the cloning of nested objects, arrays, and handles special cases like Date and RegExp objects. The function is designed to create deep copies of complex data structures, preventing unintended reference sharing. With support for circular references, it ensures a robust and reliable deep cloning solution for a wide range of use cases.
Installation
To install deeperjs
in your project, run the following command:
npm install deeperjs
Usage
To use deeperjs
in your project, add the following code:
const deeper = require('deeperjs');
const originalObject = {}
const newObject = deeper.deepClone(originalObject)