Loop through two variables or join them

Viewed 18

How can I go through the two variables or join them to be able to get the values?

var data = JSON.parse(padresj);
var data2 = JSON.parse(padresjdos);
for (var p of data) {
  p.values = [ p.Totalpa, p.Totaltrimestre ]
  p.name = p.name
  p.id = p.id
  p.children = []
}
0 Answers
Related