js: Better way to iterate through a nested object?

后端 未结 0 1258
孤城傲影
孤城傲影 2020-12-14 03:13

If I want to get a list of just the types of cars for this data:

let items = [
      {
         magnet: [
            true
         ],
         c         


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