Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 111: The Spread Operator (...)
Implement `removeById(list, id)` returning a new array without the item whose `id` matches.
+ 1 hidden test run on Submit.
Identifying rows by a stable id is the React-friendly approach (it also gives you good keys). filter keeps every item except the one whose id matches, returning a new array.
Run your code to see results.