小编Moh*_*rma的帖子

仅获取从映射到数组的值

我想获取地图的值并存储在打字稿中的字符串数组中。

myMap= [0:'Mohit',1:'Balesh',2:'Jatin'];
arr[];
Run Code Online (Sandbox Code Playgroud)

预期结果 arr['Mohit','Balesh','Jatin']

collections typescript

4
推荐指数
2
解决办法
3998
查看次数

标签 统计

collections ×1

typescript ×1