How to convert Map keys to array?

前端 未结 7 817
遥遥无期
遥遥无期 2020-12-12 10:32

Lets say I have the following map:

let myMap = new Map().set(\'a\', 1).set(\'b\', 2);

And I want to obtain [\'a\', \'b\'] based on the abov

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