Convert array of strings into an object with those string as properties and null values

后端 未结 0 1515
暖寄归人
暖寄归人 2021-02-19 00:23

Let\'s say I have this:

const myArr = ["NAME_A","NAME_B","NAME_C"];

And I\'d like to convert it to:

         


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