• Returns true if an array contains duplicates.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to check against.

    Returns boolean

    True if the array contains duplicates.