Tankōbon / lib/reading-list / moveItem
Function: moveItem()
moveItem<
T>(items,from,to):T[] |null
Defined in: lib/reading-list.ts:99
Moves the item at index from to index to, shifting the ones in between (how the sidebar reorders the lists themselves, by drag and drop). Returns null when the move is a no-op or out of range.
Type Parameters
T
T
Parameters
items
readonly T[]
from
number
to
number
Returns
T[] | null