i have 2 array of object with diffrent key each other, i want to combine those array become 1 array,
Array of object 1
0:{materi: "materi1"}
1:{materi: "materi2"}
2:{materi: "materi3"}
3:{materi: "materi4"}
Array of object 2
0:{colour: "#FFEBCD"}
1:{colour: "#8A2BE2"}
2:{colour: "#DEB887"}
3:{colour: "#5F9EA0"}
what i have done is here push, concat but doesnt give me the output that i want to
console.log(mapped, 'mapped')
console.log(color, 'color')
//console.log(mapped.push(color))
//console.log(mapped.push.apply(mapped, color))
// console.log(mapped.concat(color))
this is the output that i want
[{
"color": '#E9967A',
"materi": "Laurie Henderson"
},
{
"color": '#8B0000',
"materi": "Toni Ferrell"
},
{
"color": '#9932CC',
"materi": "Christi Summers"
},
{
"color": '#FF8C00',
"materi": "Adams Gray"
},
{
"color": '#556B2F',
"materi": "Maricela Bernard"
}]