(rowKeys: readonly string[])
| 389 | * @returns Map from row key to index |
| 390 | */ |
| 391 | export function buildRowKeyIndex(rowKeys: readonly string[]): ReadonlyMap<string, number> { |
| 392 | const map = new Map<string, number>(); |
| 393 | for (let i = 0; i < rowKeys.length; i++) { |
| 394 | const key = rowKeys[i]; |
| 395 | if (key !== undefined) { |
| 396 | map.set(key, i); |
| 397 | } |
| 398 | } |
| 399 | return map; |
| 400 | } |
| 401 | |
| 402 | /* ========== Sort Indicator ========== */ |
| 403 |
no test coverage detected