Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-08-24 17:54:00 +02:00
parent ee16a992f1
commit e9386b7fa2
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const predicates: Record<string, PredicateFactory> = {
return (docs: Doc[]): Doc[] => { return (docs: Doc[]): Doc[] => {
const result: Doc[] = [] const result: Doc[] = []
for (const doc of docs) { for (const doc of docs) {
if (o.includes((doc as any)[propertyKey])) result.push(doc) if (o.indexOf((doc as any)[propertyKey]) !== -1) result.push(doc)
} }
return result return result
} }

View File

@ -1,6 +1,6 @@
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2016", "target": "ES6",
"module": "commonjs", "module": "commonjs",
"declaration": true, "declaration": true,
"strict": true, "strict": true,