How do I loop through a model storage array?
I have saved a database list into a database model in a local storage array using the new builder. How can I loop through each of the object from the list and show the attributes. I am trying to use this but it does not work. It just say undefined.
code
var data = localStorage.getItem("following_Post_Timeline_DB");
for(var i=0; i<data.length;i++){
console.log("Username: "+data.Username+", Post: "+data.Post+"\n");
}
/code