From 81b59c4012ad13a7c229529b4155ef1bbc5f4d39 Mon Sep 17 00:00:00 2001 From: Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> Date: Sat, 6 Feb 2021 10:06:57 +0100 Subject: update missing-native-js-functions version --- src/util/convertBigIntToString.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/util/convertBigIntToString.ts (limited to 'src') diff --git a/src/util/convertBigIntToString.ts b/src/util/convertBigIntToString.ts deleted file mode 100644 index 2c8d9a38..00000000 --- a/src/util/convertBigIntToString.ts +++ /dev/null @@ -1,13 +0,0 @@ -import "missing-native-js-functions"; - -export function convertBigIntToString(obj: any) { - if (typeof obj === "bigint") obj = obj.toString(); - - if (typeof obj === "object") { - obj.keys().forEach((key: string) => { - obj[key] = convertBigIntToString(obj[key]); - }); - } - - return obj; -} -- cgit 1.5.1