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

    Note: Unlike _.differenceBy, this method mutates array.

    Type Parameters

    • T

    Parameters

    • array: T[]

      The array to modify.

    • Optionalvalues: List<T>

      The values to remove.

    • Optionaliteratee: ValueIteratee<T>

      The iteratee invoked per element.

    Returns T[]

    Returns array.

    var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];

    _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
    console.log(array);
    // => [{ 'x': 2 }]
  • Type Parameters

    • T

    Parameters

    • array: List<T>
    • Optionalvalues: List<T>
    • Optionaliteratee: ValueIteratee<T>

    Returns List<T>

    _.pullAllBy

  • Type Parameters

    • T1
    • T2

    Parameters

    • array: T1[]
    • values: List<T2>
    • iteratee: ValueIteratee<T1 | T2>

    Returns T1[]

    _.pullAllBy

  • Type Parameters

    • T1
    • T2

    Parameters

    • array: List<T1>
    • values: List<T2>
    • iteratee: ValueIteratee<T1 | T2>

    Returns List<T1>

    _.pullAllBy