Good morning.
I have an object that returns a multiple values, inside the object comes a Boolean value, I must validate that at least one comes in cheked, I try to traverse the object but I throw a mistake that the name of the field I try to access does not exist.
Any way to access that value?
My code
validarDatos(){
let cont = 0;
console.log("tiposVehiculos");
console.log(this.tiposVehiculos);
for(let i = 0; i <= this.tiposVehiculos.length; i++) {
if(this.tiposVehiculos[i].isChecked === true){
cont++;
}
}
console.log(cont);
}
my error