Answers for "update array of object using other array javascript"

0

update array of object using other array javascript

arra1 = arra1.map(item => {
  let item2 = arra2.find(i2 => i2.transid === item.transid);
  return item2 ? { ...item, ...item2 } : item;
});
Posted by: Guest on October-14-2021

Code answers related to "update array of object using other array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language