(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[])
| 262 | |
| 263 | |
| 264 | function transformRecords(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[]) { |
| 265 | const processedResults: any[] = [] |
| 266 | |
| 267 | for (const record of results) { |
| 268 | const expandedRecords: any[] = transformRecord(targetFields, record) |
| 269 | processedResults.push(...expandedRecords) |
| 270 | } |
| 271 | return processedResults |
| 272 | } |
| 273 | |
| 274 | function transformRecordsInPlace(results: any[], targetFields: (Field | CustomField | ExpandDictField | ExpandListField)[]) { |
| 275 | const processedResults: any[] = [] |
no test coverage detected