toReversed < Array < JavaScript
The toReversed() method of an array returns a new array of the elements in the array in reverse order. Unlike reverse(), it does not affect the original array, it copies it.
const numbers = [1, 2, 3, 4, 5];
const numbersToReversed = numbers.toReversed();
console.log(numbersToReversed);
// [5, 4, 3, 2, 1]
console.log(numbers);
// [1, 2, 3, 4, 5]