Skip to content

Commit 95e8c1e

Browse files
authored
chore(PouchDB-find): utils oneSetIsSubArrayOfOther loop update (#8921)
* chore(PouchDB-find): utils `oneSetIsSubArrayOfOther` loop update
1 parent e69fe21 commit 95e8c1e

File tree

1 file changed

+1
-2
lines changed
  • packages/node_modules/pouchdb-find/src

1 file changed

+1
-2
lines changed

packages/node_modules/pouchdb-find/src/utils.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,7 @@ function oneArrayIsStrictSubArrayOfOther(left, right) {
149149
// e.g. ['b', 'a'], ['a', 'b', 'c'] is true, but ['c'], ['a', 'b', 'c'] is false
150150
function oneSetIsSubArrayOfOther(left, right) {
151151
left = left.slice();
152-
for (let i = 0, len = right.length; i < len; i++) {
153-
const field = right[i];
152+
for (const field of right) {
154153
if (!left.length) {
155154
break;
156155
}

0 commit comments

Comments
 (0)