I have the following array
myArray = ["zell", "allen", 34, 223344, age , "Stree 45"]
i need to delete every position which be length less than 4
in this case the position 2 and 4
I wrote
for(var i=0; i<myArray.length; i++){
if(myArray[i].trim().length<3){
myArray.splice(i,1);
}
}
but works only with the first one, I need with every one
thanks