Function arrHasDuplicates

  • Checks if an array has any duplicate elements.

    Type Parameters

    • T

      The type of elements in the array.

    Parameters

    • arr: T[]

      The array to check for duplicates.

    Returns boolean

    A boolean indicating whether the array has duplicates.

Generated using TypeDoc