Remove unary helpers.

This commit is contained in:
John-David Dalton
2017-01-09 16:20:00 -08:00
parent 59124c4cfe
commit efcf51c7bf
15 changed files with 27 additions and 64 deletions

View File

@@ -2,7 +2,6 @@ import SetCache from './_SetCache.js';
import arrayIncludes from './_arrayIncludes.js';
import arrayIncludesWith from './_arrayIncludesWith.js';
import arrayMap from './_arrayMap.js';
import baseUnary from './_baseUnary.js';
import cacheHas from './_cacheHas.js';
/** Used as the size to enable large array optimizations. */
@@ -31,7 +30,7 @@ function baseDifference(array, values, iteratee, comparator) {
return result;
}
if (iteratee) {
values = arrayMap(values, baseUnary(iteratee));
values = arrayMap(values, value => iteratee(value));
}
if (comparator) {
includes = arrayIncludesWith;