I get an array like this:
var array = [ [ [1,1],[1,2],[1,3] ] , [ [2,2],[3,3],[4,4] ] ] ;
I want to seperate the array in two normal arrays and put the content in incrementing independently variables (data1, data2, data3, data4).
But the var array is different in size at different time (sometimes 3 arrays, sometimes 4, ... ) Now my problem is how to create the incrementing independently variables data1, data2, ...
I thought of this
counter = 0;
for (var content in array)
{
data + counter.toString() = content;
content++;
}
But that doesn't work (By the way I did not expect it :D )
Can we find a solution together?
Best regards, Susan!!