I feel like this should be easier to find online, but I haven't been able to find anything about it.
So my question is, can I use the total amount from an existing array to build that many separate arrays and auto populate them?
Can you Build Multiple Arrays using a For Loop based on the value amount of an existing array?
var arrA = ["box 1", "box 2", "box 3"];
for (i = 0; i < arrA.length; i++) {
var arr[i] =[
"Style[i]",
"ListA[i]",
"ListB[i]"
];
}
This doesn't work, but the result I am looking for is an output like this
var arr1 = ["Style1","ListA1","ListB1"];
var arr2 = ["Style2","ListA2","ListB2"];
. . . .
and continue repeating for the amount of times based on the Array length?
var arrA = ["box 1", "box 2", "box 3", "box 4"];done.