Moves elements of an Array from sourceIndex to targetIndex
Move two elements from index 2 to index 0
2
0
const array = [1, 2, 3, 4];move(2, 0, 2)(array);console.log(array); // [3, 4, 1, 2]
Generated using TypeDoc
Moves elements of an Array from sourceIndex to targetIndex
Mutation
Example
Move two elements from index
2to index0