mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-20 23:32:14 +00:00
es6
Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
parent
ee16a992f1
commit
e9386b7fa2
@ -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
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es2016",
|
"target": "ES6",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user