moveItemInArray
Moves an item one index in an array to another.
API
function moveItemInArray<T = any>( array: T[], fromIndex: number, toIndex: number, ): void;
@paramarray
T[]Array in which to move the item.
@paramfromIndex
numberStarting index of the item.
@paramtoIndex
numberIndex to which the item should be moved.
@returns
void
Super-powered by Google ©2010–2025.
Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
https://angular.dev/api/cdk/drag-drop/moveItemInArray