( moveOut: IndexedValue<[K, T]> | null, result: Array<[[K, IndexedValue<T>], number]>, )
| 101 | * Handles a moveOut change by adding it to the result array. |
| 102 | */ |
| 103 | export function handleMoveOut<K extends string | number, T>( |
| 104 | moveOut: IndexedValue<[K, T]> | null, |
| 105 | result: Array<[[K, IndexedValue<T>], number]>, |
| 106 | ): void { |
| 107 | if (moveOut) { |
| 108 | const [[key, value], index] = moveOut |
| 109 | result.push([[key, [value, index]], -1]) |
| 110 | } |
| 111 | } |
no outgoing calls
no test coverage detected