I need help. I hava an array like in JavaScript
let arr = [1,2,3,4,5,7,8,9];
I have to change it to split to multi dimensional [[1,2,3],[4,5,6],[7,8,9]]
So what's the method to have this.
Asked
Active
Viewed 11 times
0

Rohit
- 39
- 3
-
Please add the code you've attempted to your question as a [mcve]. – Andy Apr 10 '22 at 06:33
-
maybe this https://stackoverflow.com/questions/8495687/split-array-into-chunks – cmgchess Apr 10 '22 at 06:39