• ES Version of lodash.uniq Creates a duplicate-free version of an array, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array.

    Type Parameters

    • T

    Parameters

    • arr: T[]

      The array to inspect.

    Returns T[]

    Returns the new duplicate free array.