Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `incrementField(state, key)` returning a new object with the number at `key` increased by one.
+ 1 hidden test run on Submit.
Return a new object with the counter field increased by one, leaving the rest of state intact.
Run your code to see results.