The array to modify.
Optional
values: List<T>The values to remove.
Optional
iteratee: ValueIteratee<T>The iteratee invoked per element.
Returns array
.
var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];
_.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');
console.log(array);
// => [{ 'x': 2 }]
Optional
values: List<T>Optional
iteratee: ValueIteratee<T>_.pullAllBy
_.pullAllBy
_.pullAllBy
Generated using TypeDoc
This method is like
_.pullAll
except that it acceptsiteratee
which is invoked for each element ofarray
andvalues
to to generate the criterion by which uniqueness is computed. The iteratee is invoked with one argument: (value).Note: Unlike
_.differenceBy
, this method mutatesarray
.