1 var basePullAll = require('./_basePullAll');
4 * This method is like `_.pull` except that it accepts an array of values to remove.
6 * **Note:** Unlike `_.difference`, this method mutates `array`.
12 * @param {Array} array The array to modify.
13 * @param {Array} values The values to remove.
14 * @returns {Array} Returns `array`.
17 * var array = ['a', 'b', 'c', 'a', 'b', 'c'];
19 * _.pullAll(array, ['a', 'c']);
23 function pullAll(array, values) {
24 return (array && array.length && values && values.length)
25 ? basePullAll(array, values)
29 module.exports = pullAll;