MCPcopy
hub / github.com/winjs/winjs / updateKeyToIndexMap

Function updateKeyToIndexMap

tests/TestLib/TestDataSource.ts:58–64  ·  view source on GitHub ↗
(first)

Source from the content-addressed store, hash-verified

56 }
57
58 function updateKeyToIndexMap(first) {
59 // Update the key map entries for all indices that changed
60 for (var i = first; i < array.length; i++) {
61 keyToIndexMap[array[i].key] = i;
62
63 }
64 }
65
66 function keyFromIndex(index) {
67 return (index < 0 || index >= array.length ? null : array[index].key);

Callers 4

insertFunction · 0.85
moveFunction · 0.85
removeFunction · 0.85
createTestDataAdapterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected