Function isUnique

  • Examine if there are no duplicate values.

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

    • fm: MapFunction<T, T | U> = null

      map function (v, i, x)

    Returns boolean

    ∀ vᵢ, vⱼ ∈ x, is vᵢ ≠ vⱼ?

Generated using TypeDoc