Bump to v3.3.1.

This commit is contained in:
jdalton
2015-02-22 17:47:09 -08:00
parent 5dc85cc9a8
commit cc16e113c2
13 changed files with 53 additions and 45 deletions

View File

@@ -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) {

View File

@@ -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) {

View File

@@ -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;