Simple question, but I can´t get over it...
I have two arrays:
var arrayA = [67.98, "-", 91.77, "-", "-", 8.09];
var arrayB = [3, 4, 9, 1, 12, 77];
So, I need to remove all values from arrayB which have the indexes of the value "-"
in arrayA
. In this case the result of arrayB should be:
arrayB = [3, 9, 77]
Many thanks.