Given a simple array of nested arrays like this:
[
['a','b',],
['c','d'],
['e']
]
I'm looking to concatenate the values from each element and create an array like this:
['.a.c.e','.a.d.e','.b.c.e','.b.d.e']
This is just a simple example but in reality there could be more than 3 nested arrays and any number of elements within them.
Seems like it should be relatively simple, but I just can't wrap my brain around it, can anyone help?