Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const fakeBookList = [{ name: "Fever pitch", year: 1997 }, { name: "Harry Potter and the Philosopher's Stone", year: 1997 }]
- const getBooks = () => new Promise((resolve, reject) => {
- setTimeout(() => resolve(fakeBookList), 2000)
- })
Add Comment
Please, Sign In to add comment