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