[Solved] Two dimensional array value combine one of each array with other java script [closed]


Check this out.
You can iterate through the array and keep on adding the to the result array based on the item index.

var object32 = [["fgd","dsg","dsgds"],["dgfs","ewrw","zsf"],["mmm","ewrw","zsf"]];

let results = []
object32.map(obj => {
  obj.map((o, i) => {
    results[i] =  results[i] ? results[i] + ' = '+ o : o;
  })
})

results.forEach(r => console.log(r));

2

solved Two dimensional array value combine one of each array with other java script [closed]