ixfx
    Preparing search index...

    Function intersection

    • Returns the intersection of two arrays: the elements that are in common.

      intersection([1, 2, 3], [2, 4, 6]);
      // returns [2]

      See also:

      • unique: Unique set of items amongst one or more arrays

      Type Parameters

      • V

      Parameters

      • arrayA: readonly V[] | V[]
      • arrayB: readonly V[] | V[]
      • equality: IsEqual<V> = isEqualDefault

      Returns V[]