Fixed 'in' & '!in' index result filtering, see #15

This commit is contained in:
Ewout Stortenbeker 2021-03-03 13:07:16 +01:00
parent 2d4d872875
commit bae3dfd68e

View file

@ -2524,7 +2524,7 @@ class IndexQueryResults extends Array {
return op === 'like' ? isLike : !isLike;
}
if (op === 'in' || op === '!in') {
const isIn = compare instanceof Array && compare.indexOf(value);
const isIn = compare instanceof Array && compare.includes(value);
return op === 'in' ? isIn : !isIn;
}
if (op == 'between' || op === '!between') {