Const swap = (arr = [], start = 0, end = 0) => {
let result = new Map();
arr.map((_, index) => {
switch (index) {
case start:
return result.set(index, arr[end]);
case end:
return result.set(index, arr[start]);
default:
return result.set(index, arr[index]);
}
});
return Array.from(result.values());
};
if (swapIndex) {const newArr = swap(capabilities, 0, swapIndex)
console.log(newArr)} tattoo idea
This tattoo concept was designed with the help of our AI tattoo
generator. It's a full color tattoo in the style of
traditional.
This tattoo was generated by
artist-jtrOf on
29/03/2023.
Join 9,635 happy customers.