I’d like to move an object within the same array. I want to take the item with the index of 2 and set it to index 0. There are many usecases when doing drag&drop.
This only applies if you move the value at the beginning of the array. I’m asking for a function to move 2 -> 4, 3 -> 5 etc.
Setting fromIndex and toIndex