sortedUniq

Array
since 4.0.0

Arguments

  • Array The array to inspect.

Returns

Array the new duplicate free array.

This method is like _.uniq except that it's designed and optimized for sorted arrays.

Example of Lodash _.sortedUniq

_.sortedUniq([1, 1, 2]);
// => [1, 2]