I have an array of Strings, and I would like to group the content by three to create arrays within the array.
For instance:
var arrayOfStrings = ["a0", "a1", a2", "b0", "b1", "b2"]
And I am looking to achieve:
var multiDimensionalArray = [["a0", "a1", a2"], ["b0", "b1", "b2"]]
Therefore, I am looking for a function that could group the elements within arrayOfStrings in arrays containing 3 elements, in the right order.
Thank you,