@coveo/platform-client
Version:
The main goal of this package is to provide an easy to configure and straightforward way of querying Coveo Cloud APIs using JavaScript.
14 lines • 506 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.stringifyNestedObjects = void 0;
const stringifyNestedObjects = (obj) => {
Object.keys(obj).forEach((key) => {
const value = obj[key];
if (value && typeof value === 'object' && !Array.isArray(value)) {
obj[key] = JSON.stringify(value, null, 0);
}
});
return obj;
};
exports.stringifyNestedObjects = stringifyNestedObjects;
//# sourceMappingURL=stringifyNestedObjects.js.map