Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `resetForm(form)` returning a new object with every field set to an empty string.
+ 1 hidden test run on Submit.
Mapping every field to an empty string returns a cleared form object suitable for resetting a controlled form.
Run your code to see results.