Bump to v3.5.0.

This commit is contained in:
jdalton
2015-03-08 18:18:32 -07:00
parent 4881dda9d1
commit 06f6ffa303
29 changed files with 197 additions and 125 deletions

View File

@@ -47,7 +47,10 @@ function indexOf(array, value, fromIndex) {
var index = binaryIndex(array, value),
other = array[index];
return (value === value ? value === other : other !== other) ? index : -1;
if (value === value ? (value === other) : (other !== other)) {
return index;
}
return -1;
}
return baseIndexOf(array, value, fromIndex || 0);
}

View File

@@ -41,7 +41,10 @@ function lastIndexOf(array, value, fromIndex) {
} else if (fromIndex) {
index = binaryIndex(array, value, true) - 1;
var other = array[index];
return (value === value ? value === other : other !== other) ? index : -1;
if (value === value ? (value === other) : (other !== other)) {
return index;
}
return -1;
}
if (value !== value) {
return indexOfNaN(array, index, true);