I am using a long array of over 300 var & 7,000 lines of code written like this:
var a = [];
var b = [];
var c = [];
var d = [];
var e = [];
a[0] = "a";
b[0] = "b";
c[0] = "c";
d[0] = "d";
e[0] = "e";
a[1] = "1";
b[1] = "2";
c[1] = "3";
d[1] = "4";
e[1] = "5";
a[2] = "one";
b[2] = "two";
c[2] = "three";
d[2] = "four";
e[2] = "five";
Im guessing it is the same as a much cleaner and shorter -
var a = [a,1,one];
var b = [b,2,two];
var c = [c,3,three];
var d = [d,4,four];
var e = [e,5,five];
Is there an easy or automatic way to rewrite the original array like the 2nd method?