Creates a duplicate-free version of an array, using SameValueZero for equality comparisons, in which only the first occurrence of each element is kept.
SameValueZero
The array to inspect.
Returns the new duplicate free array.
_.uniq([2, 1, 2]);// => [2, 1] Copy
_.uniq([2, 1, 2]);// => [2, 1]
Creates a duplicate-free version of an array, using
SameValueZero
for equality comparisons, in which only the first occurrence of each element is kept.