aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-04-02 14:29:16 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-04-02 14:30:43 +0530
commit62de27d2acc2a59e8125d2b7d2cbcf6a41bdc62d (patch)
tree61baef443b531882ef19f82fabdf64fe091ff1a5 /src/util
parent63cf437633d7f9d91226fcefad3744332680122e (diff)
downloadwallet-core-62de27d2acc2a59e8125d2b7d2cbcf6a41bdc62d.tar.xz
helpers and tests for reserve reconciliation
Diffstat (limited to 'src/util')
-rw-r--r--src/util/helpers.ts5
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.