Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `mergeState(state, patch)` returning a new object combining both, with `patch` taking precedence.
+ 1 hidden test run on Submit.
Spreading state then patch produces a new object where patch keys override state keys, the standard shallow merge for setState updates.
Run your code to see results.