I have the following data arrays (a, b and c).
let a = [a1, a2, a3];
let b = [b1, b2, b3];
let c = [c1, c2, c3];
But I need the data as in array d. Is it possible to get the array d by combining a, b and c in javascript? Is there any simple method that achieves it or I've to iterate each array and conditionlly add them?
let d = [
{x: a1, y: b1, z: c1},
{x: a2, y: b2, z: c2},
{x: a3, y: b3, z: c3}
]