(value: ReadonlyArray<TValue>, index: number)
| 39 | } |
| 40 | |
| 41 | function removeAtIndex<TValue>(value: ReadonlyArray<TValue>, index: number): TValue[] { |
| 42 | const next = [...value]; |
| 43 | next.splice(index, 1); |
| 44 | return next; |
| 45 | } |
| 46 | |
| 47 | function moveIndex<TValue>(value: ReadonlyArray<TValue>, from: number, to: number): TValue[] { |
| 48 | const next = [...value]; |