I have a set of N arrays that contain objects with the same keys.
arr[
{values:val1,names:someName},
{values:val2,names:otherName},
]
arr2[
{values:valx,names:someNamex},
{values:valy,names:otherNamey},
]
My goal is to combine all possible combinations of objects from these arrays, resulting in a new array like this:
newArray[
{values:'val1''valx',names:'someName''someNamex'}
{values:'val1''valy',names:'someName''someNamey'}
{values:'val2''valx',names:'otherName''someNamex'}
{values:'val2''valy',names:'otherName''someNamey'}
]
I believe providing this detailed example will be helpful in solving this problem. Thank you for your attention!
Many thanks for your assistance!