Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 333 Bytes

deepClone.md

File metadata and controls

16 lines (12 loc) · 333 Bytes

deepClone

Recursively deep clone value.

function deepClone<T>(value: T): T;

Usage

import { deepClone } from '@luxcaeli/utils';

const originManky = { manky: { banana: 1 } };
const deepCopiedManky = deepClone(originManky);

console.log(originManky.manky === deepCopiedManky.manky); // false