moveItemInArray
function
Moves an item one index in an array to another.
moveItemInArray
void
Moves an item one index in an array to another.
@paramarray
T[]
Array in which to move the item.
@paramfromIndex
number
Starting index of the item.
@paramtoIndex
number
Index to which the item should be moved.
@returns
void
Jump to details