move one specific object prop from one array to another array of objects, if condition (JavaScript ES6)

前端 未结 0 1958
遇见更好的自我
遇见更好的自我 2020-11-30 01:08

I have 2 arrays of objects returning from 2 different fetch

const result1 = [
  {
    name: \'matteo\',
    age: 20,
    id: 1,
  },
  {
    name: \'luca\',
          


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