let a=[{'id': '1234', 'name':'Server 1'}, {'id': '2262', 'name':'Server 2'}];
id='1234'
attachmentName: string;
I want to get the name, based on the specific ID.
Result: attachmentName= 'Server 1' based on id=1234
I tried a.filter, but it does not give me proper result. Any suggestions would be helpful