I am using angular code to retrieve values of a string array called response.resultData
this works for certain values but when I try to print the values ending with ,
it prints the values missing the part after the comma and space.
Hydrocephalus in infectious and parasitic diseases classified
elsewhere (A00-B94.9, B99+)
is being printed as
Hydrocephalus in infectious and parasitic diseases classified
elsewhere (A00-B94.9
this.problemListService.getVisitWisePomrActive(patientPomr).subscribe(response => {
if (response != null && Array.isArray(response.resultData) && (response.resultData.length > 0)) {
problems = response.resultData.map(diagnosis => diagnosis.selectedDisease).join(' ,');
console.log(problems);
<tr>
<td colspan="18" style="font-size:11pt !important;padding:1px 5px !important"> Diagnosis :
</td>
<td colspan="158"
style="border-bottom:1px dotted black !important;font-size:11pt !important;padding:1px 5px !important;">
{{narcoticObj.diagnosis}}</td>
<td colspan="16" style="font-size:11pt !important;padding:1px 5px !important; text-align: right;">:
لتشخيص
</td>
</tr>