Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `removeField(state, key)` returning a new object without `key`.
+ 1 hidden test run on Submit.
Copy with { ...state } and delete the key from the copy so the original state object is never touched.
Run your code to see results.