Takaro - v0.4.11
    Preparing search index...

    Function sortedUniq

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

      Type Parameters

      • T

      Parameters

      • array: List<T> | null | undefined

        The array to inspect.

      Returns T[]

      Returns the new duplicate free array.

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