Tweakr
    Preparing search index...

    Function intersectionBy

    • Returns array of elements present in all arrays based on iteratee.

      Type Parameters

      • T

      Parameters

      • arrays: T[][]

        Arrays to intersect

      • iteratee: (v: T) => any

        Function to compare values

      Returns T[]

      Intersection array

      intersectionBy([{x:1}], [{x:1}, {x:2}], o => o.x); // [{x:1}]
      

      1.2.0