I'm trying to loop (for) an array object in Vue-Js, (javascript) whose size is 11 (lenght = 11) as below. But when I do:
console.log (this.grouped) // Here it shows the object with length = 11
for (var i=0;i<10; i++){
console.log(i+" Nome:"+this.agrupados.product_name )
}
The loop does not work. It is as if lenght were null and not 11.
In the chrome inspection it says this:
ThecodeIhaveis:
created(){this.getProducts()//Atualizavaloresareceberconsole.log(this.agrupados)for(vari=0;i<10;i++){console.log(i+" Nome:"+this.agrupados.product_name )
}
},