Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `flattenPairs(pairs)` turning an array of `[key, value]` pairs into an object.
+ 1 hidden test run on Submit.
Object.fromEntries consumes the pairs and builds the corresponding object.
Run your code to see results.