Imagine I have an array like:
[["abc","zxy","fgh"], ["fgj","xxy"], ["eee", "aaa", "bbb", "hhh"]]
I want to have an array that would contain all the elements for each subarray, plus appended empty (or default) items until the length of the largest subarray.
For the example, this would be:
[["abc","zxy","fgh", ""], ["fgj","xxy", "", ""], ["eee", "aaa", "bbb", "hhh"]]
Any ideas?