• This method is like _.difference except that it accepts iteratee which is invoked for each element of array and values to generate the criterion by which uniqueness is computed. The iteratee is invoked with one argument: (value).

    Type Parameters

    • T1
    • T2

    Parameters

    • array: undefined | null | List<T1>

      The array to inspect.

    • values: List<T2>

      The values to exclude.

    • iteratee: ValueIteratee<T1 | T2>

      The iteratee invoked per element.

    Returns T1[]

    Returns the new array of filtered values.

  • Type Parameters

    • T1
    • T2
    • T3

    Parameters

    • array: undefined | null | List<T1>
    • values1: List<T2>
    • values2: List<T3>
    • iteratee: ValueIteratee<T1 | T2 | T3>

    Returns T1[]

    _.differenceBy

  • Type Parameters

    • T1
    • T2
    • T3
    • T4

    Parameters

    • array: undefined | null | List<T1>
    • values1: List<T2>
    • values2: List<T3>
    • values3: List<T4>
    • iteratee: ValueIteratee<
          | T1
          | T2
          | T3
          | T4>

    Returns T1[]

    _.differenceBy

  • Type Parameters

    • T1
    • T2
    • T3
    • T4
    • T5

    Parameters

    • array: undefined | null | List<T1>
    • values1: List<T2>
    • values2: List<T3>
    • values3: List<T4>
    • values4: List<T5>
    • iteratee: ValueIteratee<
          | T1
          | T2
          | T3
          | T4
          | T5>

    Returns T1[]

    _.differenceBy

  • Type Parameters

    • T1
    • T2
    • T3
    • T4
    • T5
    • T6

    Parameters

    • array: undefined | null | List<T1>
    • values1: List<T2>
    • values2: List<T3>
    • values3: List<T4>
    • values4: List<T5>
    • values5: List<T6>
    • iteratee: ValueIteratee<
          | T1
          | T2
          | T3
          | T4
          | T5
          | T6>

    Returns T1[]

    _.differenceBy

  • Type Parameters

    • T1
    • T2
    • T3
    • T4
    • T5
    • T6
    • T7

    Parameters

    • array: undefined | null | List<T1>
    • values1: List<T2>
    • values2: List<T3>
    • values3: List<T4>
    • values4: List<T5>
    • values5: List<T6>
    • Rest...values: (List<T7> | ValueIteratee<
          | T1
          | T2
          | T3
          | T4
          | T5
          | T6
          | T7>)[]

    Returns T1[]

    _.differenceBy

  • Type Parameters

    • T

    Parameters

    • array: undefined | null | List<T>
    • Rest...values: List<T>[]

    Returns T[]

    _.differenceBy