How to make typed object map from array of pairs?

后端 未结 0 992
清歌不尽
清歌不尽 2020-12-06 19:30

Let\'s say I have an array of pairs like that:

const attributes = [
  [\'Strength\', \'STR\'],
  [\'Agility\', \'AGI\'],
  [\'Intelligence\', \'INT\']
  // ..         


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