Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiReturn = {
- {title: "I can't stop cumming", id: "fart"},
- {title: "Ah, fuck yeah", id: "poopy"}
- }
- let bookShelfKeyValueStore = {};
- apiReturn.forEach(bookObj => {
- shelfKeyValueStore[bookObj.id] = bookObj;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement