W3cubDocs

/Angular

moveItemInArray

Moves an item one index in an array to another.

API

function moveItemInArray<T = any>(
  array: T[],
  fromIndex: number,
  toIndex: number,
): 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