What is the best solution to concate lots of strings? I wanna get a lot of information from my mongodb database and send via email. I have a lot of data to concate. The usual way is:
var str1 = "Hello ";
var str2 = "world!";
var res = str1.concat(str2);
I have some array:
var strs = {'str0','str1','str2',.....};
I need something like this:
asyncConcate(strs,function (result)
{
console.log(result);
});