I have an array of multiple values, eg : 30 values
I want to split the array with 8 values each, so for 30 values in an array there will be 4 splits… like 8, 8, 8, 6
Please let me know how to achieve this. The number of values in an array is not fixed, it varies each time but values in each split must contain 8 values