showing results for - "js reduce a array of straing"
Oscar
21 Feb 2018
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
Reuben
05 May 2019
1var authors = ['some author', 'another author', 'last author'];
2var authorString = authors.join(",");
3console.log(authorString);
4