UNPKG

fatten

Version:

restructures flat objects with dot-notation-like keys into optimised nested objects

9 lines (8 loc) 208 B
type Nested = { [key: string]: Nested | any; }; export declare function fatten(object: Record<string, any>, { separator, leafKey }?: { separator?: string; leafKey?: string; }): Nested; export {};