the array to change
ascending, unique indices (normalizeRowIndices)
0 … array.length
the new index of the first moved item (-1 if nothing was given)
const list = ["a", "b", "c", "d", "e"];
moveArrayItems(list, [1, 3], 5); // 3
list; // ["a", "c", "e", "b", "d"]
1.1.95
Moves items of an array in place (like
Array.prototype.sort): the items atindiceskeep their order and are inserted in front ofinsertBefore(an index of the array before the move,array.length= at the end).