I’m struggling find a way to iterate in my array with objects. How iterate in this?
My array have 8 Usr objects.
I have try iterate with forEach method.
function show_data(){
Users.forEach(function(objs){
alert("It WOrk 1!");
if(objs.live == true){
twitchContainer.innerHTML += "<li>"+objs.name+"<img src='"+objs.image+"'>" +"<p>"+ "ici"+"</p>"+"</li>";
}else{
alert("It WOrk 2!");
}
});
}
show_data();