Frage im Vorstellungsgespräch bei New York Times

Create a function that accepts an array parameter with duplicate values and returns a new array without duplicates.