Urara-Blog/node_modules/.pnpm-store/v3/files/9e/6a871dc3dd9201a618cf83e99ee2b6d17f4b6564b15ade2fd8927a4a575fb67d44212360b8dc7f5941223e4cb47f2c9bc590c9b738619aa8453333ec34fc0e
2022-08-14 01:14:53 +08:00

29 lines
710 B
Text

var basePullAll = require('./_basePullAll');
/**
* This method is like `_.pull` except that it accepts an array of values to remove.
*
* **Note:** Unlike `_.difference`, this method mutates `array`.
*
* @static
* @memberOf _
* @since 4.0.0
* @category Array
* @param {Array} array The array to modify.
* @param {Array} values The values to remove.
* @returns {Array} Returns `array`.
* @example
*
* var array = ['a', 'b', 'c', 'a', 'b', 'c'];
*
* _.pullAll(array, ['a', 'c']);
* console.log(array);
* // => ['b', 'b']
*/
function pullAll(array, values) {
return (array && array.length && values && values.length)
? basePullAll(array, values)
: array;
}
module.exports = pullAll;