Add deepclone helper function

This commit is contained in:
Matthias 2023-05-05 07:04:40 +02:00
parent 7649390156
commit fcdafcd185

3
src/shared/deepClone.ts Normal file
View File

@ -0,0 +1,3 @@
export function deepClone<T>(object: T): T {
return JSON.parse(JSON.stringify(object));
}