JS: Flatten array of array while mapping through it?

前端 未结 0 1197
庸人自扰
庸人自扰 2020-12-06 12:43

If I want the colors of the following data, I know I can do : let colors = foo.foo.data.map(x => x.colors) which will give me an array of arrays:

`[[\

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