DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
3+2 =
Submit