1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 21:23:24 +01:00
server/dist/util/convertBigIntToString.js
2021-02-06 09:20:07 +01:00

16 lines
527 B
JavaScript

"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