We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3de3ba commit d9475b8Copy full SHA for d9475b8
src/utils.js
@@ -1,4 +1,5 @@
1
-export function arrayMove (array, previousIndex, newIndex) {
+export function arrayMove (arr, previousIndex, newIndex) {
2
+ const array = arr.slice(0);
3
if (newIndex >= array.length) {
4
var k = newIndex - array.length;
5
while ((k--) + 1) {
0 commit comments