I want to marge two arrays not based on key
Array1
[
{ size: "45", color: "red" },
{ size: "48", color: "blue" }
]
Array2
[
{ designation: "short", price: "540" },
{ designation: "jeans", price: "600" }
]
I need to merge these two arrays and expected this array
[
{ size: "45", color: "red", designation: "short" },
{ size: "48", color: "blue", designation: "jeans" }
]
How can do it?