js swipe array items code example
Example 1: swap elements in array typescript
[elements[0], elements[3]] = [elements[3], elements[0]];
Example 2: javascript swap array elements
var b = list[y];
list[y] = list[x];
list[x] = b;
[elements[0], elements[3]] = [elements[3], elements[0]];
var b = list[y];
list[y] = list[x];
list[x] = b;