Reverse array
const numbers = [1,2,3,4,5]
const result = numbers.map((x, index, array) => {
return array[array.length - 1 - index];
});
const numbers = [1,2,3,4,5]
const result = numbers.map((x, index, array) => {
return array[array.length - 1 - index];
});