keep the flip op to the end of the op list
This commit is contained in:
parent
66da2789b2
commit
8e44d3fdb0
2 changed files with 15 additions and 0 deletions
|
|
@ -22,6 +22,15 @@ if (!AP.flat) {
|
|||
};
|
||||
}
|
||||
|
||||
AP.find = function(fn) {
|
||||
for (let i=0, l=this.length; i<l; i++) {
|
||||
if (fn(this[i])) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
};
|
||||
|
||||
AP.equals = function(arr) {
|
||||
if (!arr) return false;
|
||||
if (arr.length !== this.length) return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue