I might have an array that looks like the following:
[1, 4, 2, 2, 6, 24, 15, 2, 60, 15, 6]
Or, reall
Use a Set or NSOrderedSet to remove duplicates, then convert back to an Array:
Set
NSOrderedSet
Array
let uniqueUnordered = Array(Set(array)) let uniqueOrdered = Array(NSOrderedSet(array: array))