mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Remove baseIteratee and castFunction.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import baseIteratee from './_baseIteratee.js';
|
||||
import basePullAll from './_basePullAll.js';
|
||||
|
||||
/**
|
||||
@@ -14,7 +13,7 @@ import basePullAll from './_basePullAll.js';
|
||||
* @category Array
|
||||
* @param {Array} array The array to modify.
|
||||
* @param {Array} values The values to remove.
|
||||
* @param {Function} [iteratee=_.identity] The iteratee invoked per element.
|
||||
* @param {Function} iteratee The iteratee invoked per element.
|
||||
* @returns {Array} Returns `array`.
|
||||
* @example
|
||||
*
|
||||
@@ -26,7 +25,7 @@ import basePullAll from './_basePullAll.js';
|
||||
*/
|
||||
function pullAllBy(array, values, iteratee) {
|
||||
return (array && array.length && values && values.length)
|
||||
? basePullAll(array, values, baseIteratee(iteratee, 2))
|
||||
? basePullAll(array, values, iteratee)
|
||||
: array;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user