Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js reverse array of objects

var x = [{"score":1},{"score":2},{"score":3}]
console.log(x);
var y = [...x].reverse();
console.log(y);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #reverse #array #objects
ADD COMMENT
Topic
Name
2+9 =