Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 118: Enhanced Object Literals
Implement `flattenObject(obj)` returning a flat object whose keys are dot-joined paths to each non-object value.
+ 1 hidden test run on Submit.
Depth-first recursion that joins keys with dots flattens nested objects into a single-level dotted map.
Run your code to see results.