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`.
11 * @param {Array} array The array to modify.
12 * @param {Array} values The values to remove.
13 * @returns {Array} Returns `array`.
16 * var array = [1, 2, 3, 1, 2, 3];
18 * _.pullAll(array, [2, 3]);
22 function pullAll(array, values) {
23 return (array && array.length && values && values.length)
24 ? basePullAll(array, values)
28 module.exports = pullAll;