( data: Record<string, unknown>[] )
| 22 | } |
| 23 | |
| 24 | export function buildIndexMap( |
| 25 | data: Record<string, unknown>[] |
| 26 | ): Map<string, Record<string, unknown>> { |
| 27 | return new Map( |
| 28 | data.filter((r) => typeof r.index === 'string').map((r) => [r.index as string, r]) |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | /** |
| 33 | * Derives the English source filepath from a locale-nested filepath. |
no outgoing calls
no test coverage detected