Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `resetFields(state, keys, value)` returning a new object where each key in `keys` is set to `value`.
+ 1 hidden test run on Submit.
Make one copy with { ...state } and set every key in the list to the reset value, so unaffected fields stay as they were.
Run your code to see results.