Is it possible to sort a ES6 map object?

后端 未结 11 1682
滥情空心
滥情空心 2020-11-28 21:34

Is it possible to sort the entries of a es6 map object?

var map = new Map();
map.set(\'2-1\', foo);
map.set(\'0-1\', bar);

results in:

11条回答
提交回复
热议问题