Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript sort map by value

var mapAsc = new Map([...map.entries()].sort((a,b) => a[0] > b[0]));
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #sort #map
ADD COMMENT
Topic
Name
5+9 =