Skip to content

deepCopy

kherP edited this page Jan 2, 2020 · 2 revisions

This utility deep clones an object. To use it, pass an object.

Example

const object = { property1: "test", property2: 123 };
const result = deepCopy(object);
console.log(object); // Object { property1: "test", property2: 123 }

Properties

Param Type Description
deepCopy object any complex object
Clone this wiki locally