MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / buildRowKeyIndex

Function buildRowKeyIndex

packages/core/src/widgets/table.ts:391–400  ·  view source on GitHub ↗
(rowKeys: readonly string[])

Source from the content-addressed store, hash-verified

389 * @returns Map from row key to index
390 */
391export 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

Callers 3

Calls 1

setMethod · 0.45

Tested by

no test coverage detected