no globals
This commit is contained in:
parent
bf228cf711
commit
496da6aa77
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ if (!Array.prototype.indexOf) {
|
||||||
}
|
}
|
||||||
var arr = Object(this),
|
var arr = Object(this),
|
||||||
i,
|
i,
|
||||||
len = arr.length >>> 0;
|
len = arr.length >>> 0,
|
||||||
ret = -1;
|
ret = -1;
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
if (i in arr && arr[i] === val) {
|
if (i in arr && arr[i] === val) {
|
||||||
|
@ -115,4 +115,4 @@ if (!Object.keys) {
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue