I have a two dimensional array where the last elements are empty. Like this:
data = [["1","2","3","","",""],["4","5","6","x","f",""],["7","8","9","",""]]
Now I want to remove the empty elements and get the correct new size with .length
I tryed it like this but it doesn't work:
for (i = 0; i != data[2].length-1; i++) {
if (data[2][i].isEmpty()) {
data[2] = data[2].splice(i, 1);
}
}
Is there any good solution?