( moveIn: IndexedValue<[K, T]> | null, result: Array<[[K, IndexedValue<T>], number]>, )
| 88 | * Handles a moveIn change by adding it to the result array. |
| 89 | */ |
| 90 | export function handleMoveIn<K extends string | number, T>( |
| 91 | moveIn: IndexedValue<[K, T]> | null, |
| 92 | result: Array<[[K, IndexedValue<T>], number]>, |
| 93 | ): void { |
| 94 | if (moveIn) { |
| 95 | const [[key, value], index] = moveIn |
| 96 | result.push([[key, [value, index]], 1]) |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /** |
| 101 | * Handles a moveOut change by adding it to the result array. |
no outgoing calls
no test coverage detected