Spec-Zone.ru › Angular

transferArrayItem

Moves an item from one array to another.

API

function transferArrayItem<T = any>(
  currentArray: T[],
  targetArray: T[],
  currentIndex: number,
  targetIndex: number,
): void;
@paramcurrentArrayT[]

Array from which to transfer the item.

@paramtargetArrayT[]

Array into which to put the item.

@paramcurrentIndexnumber

Index of the item in its current array.

@paramtargetIndexnumber

Index at which to insert the item.

@returnsvoid

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/transferArrayItem

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API