返回 AiToEarn
clone.ts
1 export function deepClone<T>(obj: T) {
2 return JSON.parse(JSON.stringify(obj));
3 }
4
4 lines TYPESCRIPT