So I have a query in my mongoose schema which displays this in a resultArray
[
{ scholarship_type: 'Archer Achiever Scholarship' },
{ scholarship_type: 'Star Scholarship' },
{ scholarship_type: 'Star Scholarship' },
{ scholarship_type: 'Archer Achiever Scholarship' },
{ scholarship_type: 'Star Scholarship' },
{ scholarship_type: 'Archer Achiever Scholarship' }
]
I would like to convert this array to a substring which is
"Archer Achiever Scholarship, Star Scholarship, Star Scholarship, Archer Achiever Scholarship, Star Scholarship, Archer Achiever Scholarship"
Thank you so much in advance!