How do I create a flat array from a nested array of objects in javascript recursively?

后端 未结 0 828
孤街浪徒
孤街浪徒 2020-11-21 06:31

I want to convert the following data structure:

const data = [
  {
    regions: [\'United States\', \'Canada\']
  },
  {
    regions: [\'United States\']
  },         


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