Use var toIteratee instead of callback.

This commit is contained in:
jdalton
2015-07-04 11:21:04 -07:00
committed by John-David Dalton
parent c51466935c
commit 5651993d93

View File

@@ -3709,10 +3709,10 @@
*/ */
function createSortedIndex(retHighest) { function createSortedIndex(retHighest) {
return function(array, value, iteratee) { return function(array, value, iteratee) {
var callback = getIteratee(); var toIteratee = getIteratee();
return (iteratee == null && callback === baseIteratee) return (iteratee == null && toIteratee === baseIteratee)
? binaryIndex(array, value, retHighest) ? binaryIndex(array, value, retHighest)
: binaryIndexBy(array, value, callback(iteratee), retHighest); : binaryIndexBy(array, value, toIteratee(iteratee), retHighest);
}; };
} }
@@ -5612,9 +5612,9 @@
iteratee = isIterateeCall(array, isSorted, iteratee) ? undefined : isSorted; iteratee = isIterateeCall(array, isSorted, iteratee) ? undefined : isSorted;
isSorted = false; isSorted = false;
} }
var callback = getIteratee(); var toIteratee = getIteratee();
if (!(iteratee == null && callback === baseIteratee)) { if (!(iteratee == null && toIteratee === baseIteratee)) {
iteratee = callback(iteratee); iteratee = toIteratee(iteratee);
} }
return (isSorted && getIndexOf() === baseIndexOf) return (isSorted && getIndexOf() === baseIndexOf)
? sortedUniq(array, iteratee) ? sortedUniq(array, iteratee)