If my array is the following:

myArray("apple","apple","orange","banana","orange","orange")

How do I get only the unique values into another array?