Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js reduce a array of straing

var authors = [{name: 'some author'},{name: 'another author'},{name: 'last author'}]
var authorString = authors.map(function(author){
    return author.name;
}).join(",");
console.log(authorString);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #reduce #array #straing
ADD COMMENT
Topic
Name
8+9 =