Function sortedUniq

  • This method is like uniq except that it sorts the results in ascending order

    Returns

    Returns the new duplicate free array

    Example

    uniq([2, 1, 2])
    // [1, 2]

    See

    uniq

    Type Parameters

    • T

    Parameters

    • arr: Iterable<T>

      The array containing duplicated elements

    • Optional fn: Iteratee<T, any, any>

      The iteratee invoked per element.

    Returns T[]

  • Type Parameters

    • T

    Parameters

    • arr: Iterable<T>
    • Optional fn: PropertyKey

    Returns T[]

Generated using TypeDoc