Here is my current result:
[ '1', '1', '0', '0' ],
[ '2', '4', '0', '0' ],
[ '3', '7', '0', '0' ],
[ '4', '0', '0', '-1' ],
I now want to split these arrays vertically as shown below:
[
1,
0,
0
],
[
4,
0,
0
],
[
7,
0,
0
],
Thank you in advance to those who assist with this task.