• Overview
@angular/cdk/drag-drop

moveItemInArray

function

Moves an item one index in an array to another.

API

function moveItemInArray<T = any>(
  array: T[],
  fromIndex: number,
  toIndex: number,
): void;
Jump to details