clone.ts 83 B

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