Moves an item one index in an array to another.
function moveItemInArray<T = any>( array: T[], fromIndex: number, toIndex: number,): void;