mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 16:17:50 +00:00
Bump to v3.3.1.
This commit is contained in:
@@ -21,7 +21,7 @@ function baseDifference(array, values) {
|
||||
var index = -1,
|
||||
indexOf = baseIndexOf,
|
||||
isCommon = true,
|
||||
cache = isCommon && values.length >= 200 && createCache(values),
|
||||
cache = (isCommon && values.length >= 200) ? createCache(values) : null,
|
||||
valuesLength = values.length;
|
||||
|
||||
if (cache) {
|
||||
|
||||
@@ -17,7 +17,7 @@ function baseUniq(array, iteratee) {
|
||||
length = array.length,
|
||||
isCommon = true,
|
||||
isLarge = isCommon && length >= 200,
|
||||
seen = isLarge && createCache(),
|
||||
seen = isLarge ? createCache() : null,
|
||||
result = [];
|
||||
|
||||
if (seen) {
|
||||
|
||||
@@ -22,8 +22,11 @@ function isIterateeCall(value, index, object) {
|
||||
} else {
|
||||
prereq = type == 'string' && index in object;
|
||||
}
|
||||
var other = object[index];
|
||||
return prereq && (value === value ? value === other : other !== other);
|
||||
if (prereq) {
|
||||
var other = object[index];
|
||||
return value === value ? value === other : other !== other;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
module.exports = isIterateeCall;
|
||||
|
||||
Reference in New Issue
Block a user