Create new object if array has multiple ids

后端 未结 0 1902
傲寒
傲寒 2021-01-20 14:28

We have an array like

const arr = [{
    name: \'foo\',
    age: 23,
    id: [1, 2]
}, {
    name: \'bar\',
    age: 24,
    id: [3, 4]
}, {
    name: \'baz\'         


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