• 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.

    • Optional values: List<T>

      The values to remove.

    • Optional iteratee: ValueIteratee<T>

      The iteratee invoked per element.

    Returns T[]

    Returns array.

    Example

    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>
    • Optional values: List<T>
    • Optional iteratee: ValueIteratee<T>

    Returns List<T>

    See

    _.pullAllBy

  • Type Parameters

    • T1

    • T2

    Parameters

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

    Returns T1[]

    See

    _.pullAllBy

  • Type Parameters

    • T1

    • T2

    Parameters

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

    Returns List<T1>

    See

    _.pullAllBy

Generated using TypeDoc