I am trying to combine multiple arrays elements into a single array.
To put it in better perspective let's say I have 3 arrays that look like this
array1 = ['test']
array2 = ['foo', 'foo_1', 'foo_2']
array3 = ['bar']
In the end I need a single array that looks like this.
finalArray = ['test.foo.bar', 'test.foo_1.bar', 'test.foo_2.bar'].
Each array might have different sizes and lengths. But the idea is the same. Kinda like a tree with each array being a branch of the other when combining.
Any help with this would be appreciated, thank you.