This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on original implementation from Tofandel’s answer: https://stackoverflow.com/a/59787588/247441 | |
/* Aggregates parts (mapped to slash-separated paths) into a nested object. | |
E.g.: | |
{ /some/path: A, /foo: B, /some/other/path: C } | |
gets turned into: | |
{ foo: B, some: { path: A, other: { path: C } } } | |
*/ |
OlderNewer