Please check the below code :
).pipe(
map(list => list.map(e => ({
value: e.AccountID,
display: `${e.accountName}${e.primaryPhone } (${e.emailAddress})`,
details: {}
}))));
We need to display the output like
AccountName
PrimaryPhone EmailAddress
Current display in autocomplete search like
AccountName PrimaryPhone EmailAddress
Need to break after AccountName