I have 2 array of objects:
marketingCarriers:
[
{
code: "AM"
logo: "logo1.png"
name: "AEROMEXICO"
}
]
operatingCarriers:
[
{
code: "DL"
logo: "logo12.png"
name: "DELTA"
},
{
code: "AM"
logo: "logo1.png"
name: "AEROMEXICO"
}
]
I want to make an array by comparing these two array of objects where I will put the unique objects from these 2 arrays.
So the output will be:
newArray:
[
{
code: "DL"
logo: "https://meta-staging.welltravel.com/media/W1siZiIsIjIwMTcvMTIvMDgvMDkvMzUvMjRhY2FjZjktZjc5Zi00YWUyLWI0Y2MtZDgxMDViMjkzZWM2Il1d?sha=d121026cc0675306"
name: "DELTA"
}
]
What should be the process?