📜  javascript stack reverse - Javascript代码示例

📅  最后修改于: 2022-03-11 15:04:20.449000             🧑  作者: Mango

代码示例2
let arr = [1, 2, 3];

arr.slice().reverse().forEach(x => console.log(x))
 Run code snippet