I have a string filled with ones and zeros separated by "," and ";".
var x = "1,1,0;1,0,0;1,1,1;"; x.split(";");
This results in an array containing only two strings: 1,0,0 and 1,1,1.
My goal is to organize these numbers into a two-dimensional array:
1 1 0
1 0 0
1 1 1
If there is a more efficient method than just splitting the string, please share it with me.
Otherwise, please advise on how to correct the issue mentioned above.