I have N arrays with objects inside. All objects has the same keys.
arr[
{values:val1,names:someName},
{values:val2,names:otherName},
]
arr2[
{values:valx,names:someNamex},
{values:valy,names:otherNamey},
]
I need to mix all the combinations between that N arrays. Something 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 hope this can be helpful to find an answer to this problem.
Thanks for your time!