(data: RowData, nameById: Map<string, string>)
| 178 | * are dropped, so orphaned keys never surface. |
| 179 | */ |
| 180 | export function rowDataIdToName(data: RowData, nameById: Map<string, string>): RowData { |
| 181 | const out: RowData = {} |
| 182 | for (const [id, value] of Object.entries(data)) { |
| 183 | const name = nameById.get(id) |
| 184 | if (name !== undefined) out[name] = value |
| 185 | } |
| 186 | return out |
| 187 | } |
no test coverage detected