diff --git a/packages/core/src/predicate.ts b/packages/core/src/predicate.ts index b81772475c..e08961918f 100644 --- a/packages/core/src/predicate.ts +++ b/packages/core/src/predicate.ts @@ -28,7 +28,7 @@ const predicates: Record = { return (docs: Doc[]): Doc[] => { const result: Doc[] = [] for (const doc of docs) { - if (o.indexOf((doc as any)[propertyKey]) !== -1) result.push(doc) + if (o.includes((doc as any)[propertyKey])) result.push(doc) } return result }