deepClone
deepClone(obj)
deepClone(obj)Arguments
Returns
Example
typescript
import { deepClone } from 'check-engineering/ts-utils';
const originalObject = { name: 'Alice', age: 30, hobbies: ['reading', 'painting'] };
const clonedObject = deepClone(originalObject); // => { name: 'Alice', age: 30, hobbies: ['reading', 'painting'] }Usage
typescript
import { deepClone } from 'check-engineering/ts-utils';
const data = { key: 'value', nested: { subkey: 'subvalue' } };
const clonedData = deepClone(data); // => { key: 'value', nested: { subkey: 'subvalue' } }Notes
Last updated