Returns a new array that is a reversed copy of the original array, without modifying the original array.
Examples:
const numbers = [1, 2, 3, 4]; const reversedNumbers = numbers.toReversed(); console.log(reversedNumbers); // [4, 3, 2, 1] console.log(numbers); // [1, 2, 3, 4]