kopia lustrzana https://github.com/c9/core
Fix `isArray` check.
rodzic
57fcce4ca1
commit
cbb63a37b1
|
@ -1819,7 +1819,7 @@ defineProp(Array.prototype, "pushUnique", function(){
|
||||||
*/
|
*/
|
||||||
defineProp(Array.prototype, "search", function(){
|
defineProp(Array.prototype, "search", function(){
|
||||||
for (var i = 0, length = arguments.length; i < length; i++) {
|
for (var i = 0, length = arguments.length; i < length; i++) {
|
||||||
if (typeof this[i] != "array")
|
if (!Array.isArray(this[i]))
|
||||||
continue;
|
continue;
|
||||||
for (var j = 0; j < length; j++) {
|
for (var j = 0; j < length; j++) {
|
||||||
if (this[i][j] != arguments[j])
|
if (this[i][j] != arguments[j])
|
||||||
|
|
Ładowanie…
Reference in New Issue