• Return whether the array contains duplicate values

    Parameters

    • arr: unknown[]

    Returns boolean