pullAll

Array
since 4.0.0

Arguments

  • Array The array to modify.
  • Array The values to remove.

Returns

Array `array`.

This method is like _.pull except that it accepts an array of values to remove.

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

Example of Lodash _.pullAll

var array = ['a', 'b', 'c', 'a', 'b', 'c'];

_.pullAll(array, ['a', 'c']);
console.log(array);
// => ['b', 'b']