mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 21:15:15 +00:00
Add deepclone helper function
This commit is contained in:
parent
7649390156
commit
fcdafcd185
3
src/shared/deepClone.ts
Normal file
3
src/shared/deepClone.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export function deepClone<T>(object: T): T {
|
||||
return JSON.parse(JSON.stringify(object));
|
||||
}
|
Loading…
Reference in New Issue
Block a user