Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-24 18:32:50 +02:00
parent 5ca13be5cd
commit e77bba017c
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -28,7 +28,7 @@ const predicates: Record<string, PredicateFactory> = {
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
}