(first)
| 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); |
no outgoing calls
no test coverage detected