fix override of array.find
This commit is contained in:
parent
1cac04088c
commit
f5cf5d9238
2 changed files with 2 additions and 2 deletions
|
|
@ -22,7 +22,7 @@ if (!AP.flat) {
|
|||
};
|
||||
}
|
||||
|
||||
AP.find = function(fn) {
|
||||
AP.findWith = function(fn) {
|
||||
for (let i=0, l=this.length; i<l; i++) {
|
||||
if (fn(this[i])) {
|
||||
return i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue