const a1 = [{ArrayOneId: "1",Desc: "Description1"},{ArrayOneId: "2",Desc: "Description2"}];
const a2 = [{ArrayTwoId: "1",subs: "true"},{ArrayTwoId: "2",subs: "false"}];
const endArr = [];
a1.forEach(objA1 => {
const objA2 = a2.find(obj => obj.ArrayTwoId === objA1.ArrayOneId);
if (objA2) endArr.push({MainId: objA2.ArrayTwoId, subs: objA2.subs});
});