Script to convert List of object to string [closed]

I have a list as follows:

caseStatusList: Array(3)
0: {id: 2, descr: "EEO"}
1: {id: 3, descr: "EE"}
2: {id: 7, descr: "E"}

I want to use a typescript function to convert this caseStatusList to a string seperated by comma as follows:

String caseStatusList = EEO,EE,E

I want to do this in typescript in angular.ts file. What is the best way to do ?

Answer

caseStatusList.map(item => item.descr).join(',')