Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to reverse array of object

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reverse #array #object
ADD COMMENT
Topic
Name
5+9 =