keep the flip op to the end of the op list

This commit is contained in:
Stewart Allen 2022-10-05 10:55:32 -04:00
commit 8e44d3fdb0
2 changed files with 15 additions and 0 deletions

View file

@ -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;