summary refs log tree commit diff
path: root/dist/util/convertBigIntToString.js
blob: a72b5a57185eef3c36d8963a7c5a7ceb5534a3b9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertBigIntToString = void 0;
require("missing-native-js-functions");
function convertBigIntToString(obj) {
    if (typeof obj === "bigint")
        obj = obj.toString();
    if (typeof obj === "object") {
        obj.keys().forEach((key) => {
            obj[key] = convertBigIntToString(obj[key]);
        });
    }
    return obj;
}
exports.convertBigIntToString = convertBigIntToString;
//# sourceMappingURL=convertBigIntToString.js.map