@omnigraph/odata
Version:
15 lines (14 loc) • 447 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.rebuildOpenInputObjects = rebuildOpenInputObjects;
function rebuildOpenInputObjects(input) {
if (typeof input === 'object') {
if ('rest' in input) {
Object.assign(input, input.rest);
delete input.rest;
}
for (const fieldName in input) {
rebuildOpenInputObjects(input[fieldName]);
}
}
}
;