Eduard Nistru Eduard Nistru - 1 year ago 76
Node.js Question

Return array value with forEach()

I am looking to return the name value of an array stored in another Object.

exports.send = function(req,res){


Product 3
Product 2

But I don't know how to obtain those values for an HTML content which I want to send it to an email address. I tried with
instead of
but it doesn't work. Thanks a lot in advance! Newbie out.

Answer Source

try map instead of foreach{ return; })