[Solved] Remove duplicates and combine multiple lists into one?


Create a empty array push the index 0 from childs arrays and join to convert all values to a string separate by space .

var your_input_data = [ ["hello","hi", "jel"], ["good"], ["good2","lo"], ["good3","lt","ahhahah"], ["rep", "nice","gr8", "job"] ];

var myprint = []
for(var i in your_input_data){
   myprint.push(your_input_data[i][0]);
}
console.log(myprint.join(' '))

2

solved Remove duplicates and combine multiple lists into one?