mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Ignore isSorted if _.indexOf is customized.
This commit is contained in:
@@ -2397,11 +2397,12 @@
|
||||
}
|
||||
var index = -1,
|
||||
indexOf = getIndexOf(),
|
||||
prereq = !isSorted && indexOf === baseIndexOf,
|
||||
prereq = indexOf === baseIndexOf,
|
||||
isLarge = prereq && createCache && length >= 200,
|
||||
isCommon = prereq && !isLarge,
|
||||
result = [];
|
||||
|
||||
isSorted = prereq && isSorted;
|
||||
if (isLarge) {
|
||||
var seen = createCache();
|
||||
indexOf = cacheIndexOf;
|
||||
|
||||
Reference in New Issue
Block a user