Copies a row into another table, then removes it from this table.
The destination reserves a new row first. Values for this table’s columns
are copied with Table#set; a source column missing from the
destination is therefore ignored. Columns that exist only in the
destination remain unpopulated, so the caller must fill them afterward.
The source row is then removed with swap removal, which can change another
row’s index. The source row index is not preserved.
Use this when moving a row between tables with different component
layouts. Pass a valid source row and update any other row indexes affected
by the source table’s swap.
Examples
const destinationRow = source.moveTo(destination, sourceRow)
destination.insertUnchecked(destinationRow, [healthId], [new Health()])