Fix `isArray` check.

pull/428/head
Max Schaefer 2017-05-23 08:52:49 +08:00
rodzic 57fcce4ca1
commit cbb63a37b1
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1819,7 +1819,7 @@ defineProp(Array.prototype, "pushUnique", function(){
*/
defineProp(Array.prototype, "search", function(){
for (var i = 0, length = arguments.length; i < length; i++) {
if (typeof this[i] != "array")
if (!Array.isArray(this[i]))
continue;
for (var j = 0; j < length; j++) {
if (this[i][j] != arguments[j])