📜  无需修改的javascript反向数组 - Javascript代码示例

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

代码示例2
var newarray = array.slice().reverse(); //returns a reversed array without modifying the original