diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-02 14:29:16 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-02 14:30:43 +0530 |
commit | 62de27d2acc2a59e8125d2b7d2cbcf6a41bdc62d (patch) | |
tree | 61baef443b531882ef19f82fabdf64fe091ff1a5 /src/util | |
parent | 63cf437633d7f9d91226fcefad3744332680122e (diff) |
helpers and tests for reserve reconciliation
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/helpers.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util/helpers.ts b/src/util/helpers.ts index 130dcdaef..0e19d7aba 100644 --- a/src/util/helpers.ts +++ b/src/util/helpers.ts @@ -102,6 +102,11 @@ export function deepEquals(x: any, y: any): boolean { ); } +export function deepCopy(x: any): any { + // FIXME: this has many issues ... + return JSON.parse(JSON.stringify(x)); +} + /** * Map from a collection to a list or results and then * concatenate the results. |