Returns a new array without duplicates