Convert String Array to Array Object with keys and values

前端 未结 0 1165
灰色年华
灰色年华 2020-12-04 17:15

I would like to convert a string array like that:

const arr = [
  "name:Adam age:20 height:180cm",
  "name:Sally age:30 height:170cm",
  &         


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