1var authors = [{name: 'some author'},{name: 'another author'},{name: 'last author'}]
2var authorString = authors.map(function(author){
3 return author.name;
4}).join(",");
5console.log(authorString);
6
1var authors = ['some author', 'another author', 'last author'];
2var authorString = authors.join(",");
3console.log(authorString);
4