Why it is allowed to index array with invalid keys in mapped object

后端 未结 0 351
深忆病人
深忆病人 2021-01-13 18:26

In the following code typescript compiler allows us to index tuple with invalid keys infering unknown for invalid string keys and undefined for inv

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