Code:
for(var i=0; i<myArray.length; i++) {
myArray[i] = parseInt(myArray[i], 10);
}
can be written without a loop as:
Code:
myArray=myArray.map(Math.floor);
if your table is shaped like a ladder, it can't be recursively iterated.
recursion is for deeply nested objects, like a folder structure.