Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.             for (var i = 0; i < Object.keys(store).length; i++) {  // Iterate over the results
  2.                 const { title, category, url } = store[Object.keys(store)[i]];    // Store is a dict, cant be accessed by array item, needs ID per post.
  3.                 appendString += '<a href="' + url + '"><h3>' + title + '</h3><h3>' + category + '</h3></a>';
  4.                 // appendString += '<p>' + item.content.substring(0, 150) + '...</p></li>';
  5.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement