how can i merge these to arrays togheter, if there is a duplicate in id: i want to add them together
const arr1 = [{id:'1', start:1, end:0},{id:'2', start:3, end:0},{id:'3', start:1, end:0}]
const arr2 = [{id:'4', start:0, end:4},{id:'2', start:0, end:4}]
i want the output to be like this
const arr3 =[{id:'1', start:1, end:0},{id:'2', start:3, end:4},{id:'3', start:1, end:0},
{id:'4', start:0, end:4}]
I am new here and grateful for all the help! :)