copyArrayItem
function
Copies an item from one array to another, leaving it in its original position in current array.
API
function copyArrayItem<T = any>(
currentArray: T[],
targetArray: T[],
currentIndex: number,
targetIndex: number,
): void;Jump to details