transferArrayItem
function
Moves an item from one array to another.
API
function transferArrayItem<T = any>( currentArray: T[], targetArray: T[], currentIndex: number, targetIndex: number): void;
transferArrayItem
voidMoves an item from one array to another.
@paramcurrentArray
T[]Array from which to transfer the item.
@paramtargetArray
T[]Array into which to put the item.
@paramcurrentIndex
numberIndex of the item in its current array.
@paramtargetIndex
numberIndex at which to insert the item.
@returns
voidJump to details