Tankōbon / lib/reading-list / moveUnfinished
Function: moveUnfinished()
moveUnfinished(
order,finished,from,to):string[] |null
Defined in: lib/reading-list.ts:78
Moves the book at index from to index to in order, a list's entry ids. Finished books are pinned: they can't be moved, and the others move around them (only the unfinished books swap places; each finished book keeps its index). Returns null when the move is refused, i.e. when from or to is a finished book, out of range, or the same index.
Parameters
order
string[]
finished
ReadonlySet<string>
from
number
to
number
Returns
string[] | null