Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `applyUpdates(state, updates)` that folds an array of partial-state patches onto `state`, returning the new state without mutating the original.
+ 1 hidden test run on Submit.
Folding patches with spread produces a new merged object each step, the immutable batched-update pattern.
Run your code to see results.