Files
um-react/src/util/deepClone.ts
T

4 lines
91 B
TypeScript

export function deepClone<T>(obj: T): T {
return JSON.parse(JSON.stringify(obj)) as T;
}