mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-23 14:06:00 +03:00
includes
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
5ca13be5cd
commit
e77bba017c
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user