Tweakr
    Preparing search index...

    Function differenceBy

    • Returns elements in the first array not present in others, based on iteratee.

      Type Parameters

      • T

      Parameters

      • array: T[]

        Source array

      • values: T[]

        Arrays to exclude

      • iteratee: (v: T) => any

        Function to compare values

      Returns T[]

      Array of difference

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

      1.2.0