Function intersection

  • Creates a generator of unique values that are included in all given arrays.

    Example

    [...intersection([2, 1], [2, 3])]
    // [2]

    See

    Type Parameters

    • T

    Parameters

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

      The arrays to inspect

    Returns Generator<T, void, unknown>

Generated using TypeDoc