@melonproject/protocol
Version:
Technology Regulated and Operated Investment Funds
18 lines (17 loc) • 677 B
JavaScript
;
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const R = __importStar(require("ramda"));
const stringifyStruct = (obj) => {
const paris = R.toPairs(obj);
const stringified = R.map(([key, value]) => [key, `${value}`], paris);
const stringifiedStruct = R.fromPairs(stringified);
return stringifiedStruct;
};
exports.stringifyStruct = stringifyStruct;