javascript sort map by value
var mapAsc = new Map([...map.entries()].sort((a,b) => a[0] > b[0]));
javascript sort map by value
var mapAsc = new Map([...map.entries()].sort((a,b) => a[0] > b[0]));
javascript sort map by value
var map = new Map();
map.set('2-1', "foo");
map.set('0-1', "bar");
map.set('3-1', "baz");
var mapAsc = new Map([...map.entries()].sort());
console.log(mapAsc)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us