mirror of
https://git.um-react.app/um/um-react.git
synced 2026-11-25 14:56:58 +00:00
4 lines
91 B
TypeScript
4 lines
91 B
TypeScript
export function deepClone<T>(obj: T): T {
|
|
return JSON.parse(JSON.stringify(obj)) as T;
|
|
}
|