Moves elements within an array, returning an array containing the moved elements.
array.move(index, howMany, toIndex);
index: Index at which to move elements. If negative, index will start from the end.
howMany: Number of elements to move from index.
toIndex: Index of the array at which to place the moved elements. If negative, toIndex will start from the end.
array = ["a", "b", "c", "d", "e", "f", "g"];
array.move(3, 2, 1); // returns ["d","e"]
array; // returns ["a", "d", "e", "b", "c", "f", "g"]
take care, this is not working properly
x = ['a', 'b', 'c']
x.move(0,1,1)
expectet would be
x
Array [ 'b', 'a', 'c' ]
but result ist
x
Array [ 'a', 'b', 'c' ]