@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
8 lines • 340 B
TypeScript
/**
* Flatten the object into 1-level-object (with key paths)
* @example
* const flattenObj = flattenObject({a: {b: [{c: 1}, {c: 2}]}, e: 3});
* console.log(flattenObj); // {"a.b.0.c": 1, "a.b.1.c": 2, "e": 3}
*/
export declare function flattenObject(obj: Record<string, any>): Record<string, any>;
//# sourceMappingURL=object.d.ts.map