This method is like _.uniq except that it's designed and optimized for sorted arrays.
_.uniq
_.sortedUniq([1, 1, 2]);// => [1, 2] Copy
_.sortedUniq([1, 1, 2]);// => [1, 2]
The array to inspect.
Returns the new duplicate free array.
Generated using TypeDoc
This method is like
_.uniq
except that it's designed and optimized for sorted arrays.Example