VSCode TypeScript Map get is still considered undefined even with a has check before

后端 未结 0 334
星月不相逢
星月不相逢 2021-01-04 11:26

If I defined a simple Map with: const map = new Map(); and later want to do something with it I would expect this to work:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题