aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-wallet-core/src/util/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-core/src/util/helpers.ts')
-rw-r--r--packages/taler-wallet-core/src/util/helpers.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/taler-wallet-core/src/util/helpers.ts b/packages/taler-wallet-core/src/util/helpers.ts
index ae4b0359e..570df441d 100644
--- a/packages/taler-wallet-core/src/util/helpers.ts
+++ b/packages/taler-wallet-core/src/util/helpers.ts
@@ -146,3 +146,7 @@ export function strcmp(s1: string, s2: string): number {
}
return 0;
}
+
+export function j2s(x: any): string {
+ return JSON.stringify(x, undefined, 2);
+} \ No newline at end of file