[Solved] How to push particular key from array to other array?


let list = [{
    advance_amount: "100",
    id: "SUBMH9876",
    created_by: "12346",
    created_date: "Thu, 08 Nov 2018 11:23:00 GMT"

  },

  {
    advance_amount: "200",
    id: "SUBIH9876",
    created_by: "12346",
    created_date: "Thu, 08 Nov 2018 11:23:00 GMT"

  }
];

var subArr = list.map((item) => {
  return { id: item.id }
});

console.log(subArr)

solved How to push particular key from array to other array?