update missing-native-js-functions version

This commit is contained in:
Flam3rboy
2021-02-06 10:06:57 +01:00
parent 6ab626fc0d
commit 81b59c4012
3 changed files with 8 additions and 21 deletions
-13
View File
@@ -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;
}