• Returns a new array with all the unique values from a source array. Same-value-zero equality is used, where 0 = -0 and NaN = NaN.

    Type Parameters

    • T

      The generic type of the values in the array.

    Parameters

    • values: T[]

      The array of values.

    Returns T[]

    A new array with the unique values.