manipulating an array from two or more arrays in angular

I have two arrays:

1st array:

[ 0:{“useCaseId”:1036, “useCaseName”:”user”, “senderMailId”:null, “executionDate”:null, “startTime”:null, “status”:null, “endTime”:null, “totalExecutionTime”:null, “ticketId”:null, “description”:”reset password”, “createdDate”:”2022-03-15T06:19:31.832+00:00″, “active”:true},

1:{“useCaseId”:1033, “useCaseName”:”designer”, “senderMailId”:null, “executionDate”:null, “startTime”:null, “status”:null, “endTime”:null, “totalExecutionTime”:null, “ticketId”:null, “description”:”running password not”, “createdDate”:”2022-03-11T06:58:43.804+00:00″, “active”:false},… ]

2nd Array:

0: id: 1 latestMessage: “Good Morning!” latestMessageRead: true messages: Array(5) 0: {id: 1, body: ‘Hello!’, time: ‘8:21’, me: true} 1: {id: 1, body: ‘How are you?’, time: ‘8:21’, me: false} 2: {id: 3, body: ‘I am fine thanks.’, time: ‘8:21’, me: true} 3: {id: 4, body: ‘Glad to hear that’, time: ‘8:21’, me: false} 4: {id: 5, body: ‘Yes, from this side too’, time: ‘8:21’, me: true}

1: id: 2 latestMessage: “Good evening!” latestMessageRead: true messages: Array(5) 0: {id: 2, body: ‘Hello!’, time: ‘8:21’, me: true} 1: {id: 1, body: ‘How are you?’, time: ‘8:21’, me: false} 2: {id: 3, body: ‘I am fine thanks.’, time: ‘8:21’, me: true} 3: {id: 4, body: ‘Glad to hear that’, time: ‘8:21’, me: false} 4: {id: 5, body: ‘Yes, from this side too’, time: ‘8:21’, me: true}… ]

I want a third array which has:

Conversation=[ name: useCaseName (from the first array), time: createdDate (from the first array), id: 1, latestMessage: “Good Morning!”, latestMessageRead: true, messages: Array(5) 0: {id: 1, body: ‘Hello!’, time: ‘8:21’, me: true} 1: {id: 1, body: ‘How are you?’, time: ‘8:21’, me: false} 2: {id: 3, body: ‘I am fine thanks.’, time: ‘8:21’, me: true} 3: {id: 4, body: ‘Glad to hear that’, time: ‘8:21’, me: false} 4: {id: 5, body: ‘Yes, from this side too’, time: ‘8:21’, me: true},

id: 2, name: useCaseName (from the first array), time: createdDate (from the first array), latestMessage: “Good evening!”, latestMessageRead: true, messages: Array(5) 0: {id: 1, body: ‘Hello!’, time: ‘8:21’, me: true} 1: {id: 1, body: ‘How are you?’, time: ‘8:21’, me: false} 2: {id: 3, body: ‘I am fine thanks.’, time: ‘8:21’, me: true} 3: {id: 4, body: ‘Glad to hear that’, time: ‘8:21’, me: false} 4: {id: 5, body: ‘Yes, from this side too’, time: ‘8:21’, me: true}

]

I am quite new to angular,Can anyone help me out please.
Thankyou.