(items: T[], indexes: number[] | undefined)
| 122 | } |
| 123 | |
| 124 | function selectByIndexes<T>(items: T[], indexes: number[] | undefined): T[] { |
| 125 | if (!indexes) { |
| 126 | return items |
| 127 | } |
| 128 | |
| 129 | const indexSet = new Set(indexes) |
| 130 | return items.filter((_, index) => indexSet.has(index)) |
| 131 | } |
| 132 | |
| 133 | export function persistHttpImportResult( |
| 134 | result: HttpImportResult, |
no outgoing calls
no test coverage detected