📜  js反向对象数组 - Javascript代码示例

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

代码示例3
var x = [{"score":1},{"score":2},{"score":3}]
console.log(x);

var y = x.reverse();
console.log(y);

if the above method does not work than try this

var y = [...x].reverse();
console.log(y);