I've array of arrays say and I wanna combine each element with every element:
[ [ahmed, omar , ali],
[mohammed, sayed], [mostafa, ali],
I want the result to be like that [
'ahmed mohammed mostafa', 'ahmed mohammed ali', 'ahmed sayed mostafa', 'ahmed sayed ali'
...... same thing with omar and ali
need way or algorithms to make it, thanks