配列の並び順を逆にする reverse

console.log([1, 2, 3, 4, 5].reverse())  // [5, 4, 3, 2, 1]