• Returns an array of duplicated values in the input. This is equivalent to using util#isDeepStrictEqual to compare every member of the input to all the other members, but with an optimization to make the runtime complexity O(n) instead of O(n^2).

    Returns

    an array containing one instance of every duplicated member of the input, or an empty array if there are no duplicates

    Parameters

    Returns Input[]