Course · Section 11: Working With Arrays · Lecture 149: Simple Array Methods
Implement `removeDuplicates(arr)` that returns a new array with duplicate values removed, preserving the original order.
+ 2 hidden tests run on Submit.
new Set keeps first occurrences in order; spreading returns the deduplicated array.
Run your code to see results.