Function union$

  • Obtain values present in any array!

    Type Parameters

    • T

    • U = T

    Parameters

    • x: T[]

      an array (updated!)

    • y: T[]

      another array

    • fc: CompareFunction<T | U> = null

      compare function (a, b)

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

      map function (v, i, x)

    Returns T[]

    x = x ∪ y = {v | v ∈ x or v ∈ y}

Generated using TypeDoc