I'm trying to have an api return a few arrays, and have my code append each array item to a new Discord embed. So far my code is:
cleanedSearchArray.forEach( lyricResult => lyricSearchEmbed.addField('\u200B' + lyricResult, 'by ' + cleanedSearchArtistArray.forEach()));
I'm trying to have my embed output:
song0
by artist0
song1
by artist1
song2
by artist2
but instead, I get:
song0
by function forEach() { [native code] }
song1
by function forEach() { [native code] }
song2
by function forEach() { [native code] }
Any way to get the desired output?
BTW cleanedSearchArray
includes [song0, song1, song2] and cleanedSearchArtistArray
includes [artist0, artist1, artist2]