mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Fix failing tests in Node.
This commit is contained in:
@@ -1843,8 +1843,7 @@
|
|||||||
var index = -1,
|
var index = -1,
|
||||||
indexOf = getIndexOf(),
|
indexOf = getIndexOf(),
|
||||||
isCommon = indexOf == baseIndexOf,
|
isCommon = indexOf == baseIndexOf,
|
||||||
isLarge = isCommon && values && values.length >= 200,
|
cache = isCommon && values.length >= 200 && createCache(values),
|
||||||
cache = isLarge && createCache(values),
|
|
||||||
result = [],
|
result = [],
|
||||||
valuesLength = values.length;
|
valuesLength = values.length;
|
||||||
|
|
||||||
@@ -2603,6 +2602,7 @@
|
|||||||
indexOf = cacheIndexOf;
|
indexOf = cacheIndexOf;
|
||||||
isCommon = false;
|
isCommon = false;
|
||||||
} else {
|
} else {
|
||||||
|
isLarge = false;
|
||||||
seen = iteratee ? [] : result;
|
seen = iteratee ? [] : result;
|
||||||
}
|
}
|
||||||
outer:
|
outer:
|
||||||
|
|||||||
Reference in New Issue
Block a user