instance method Array#uniq
Array#uniq([sorted = false]) → Array
-
sorted
(Boolean
) – Whether the array has already been sorted. Iftrue
, a less-costly algorithm will be used.
Produces a duplicate-free version of an array. If no duplicates are found, the original array is returned.