Remove baseIteratee and castFunction.

This commit is contained in:
John-David Dalton
2017-01-09 17:17:03 -08:00
parent efcf51c7bf
commit 65654f8f9e
96 changed files with 140 additions and 537 deletions

View File

@@ -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;
}