Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 294: Declarative and Functional JavaScript Principles
Implement `todoToggleReducer(state, action)` where a `toggle` action carries an `index`, flipping that todo's `done` flag immutably.
+ 1 hidden test run on Submit.
map returns a new array; at the target index you return a new todo with done flipped, and every other todo is returned as-is, so only one item changes identity.
Run your code to see results.