Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

descending order in objects in js

starWarsPeople.map(e=>{
    return e
  }).sort((a,b)=> b.height - a.height);
 
PREVIOUS NEXT
Tagged: #descending #order #objects #js
ADD COMMENT
Topic
Name
6+8 =