Function union

  • Creates a generator of unique values from all given arrays using Set for equality comparisons.

    Example

    [...union([2], [1, 2])]
    // [2, 1]

    See

    Type Parameters

    • T

    Parameters

    • Rest ...args: Iterable<T>[]

      The arrays to perform union on.

    Returns Generator<T, void, unknown>

Generated using TypeDoc