clone.ts 86 B

123
  1. export function deepClone<T>(obj: T): T {
  2. return JSON.parse(JSON.stringify(obj));
  3. }