Created
August 14, 2021 15:03
-
-
Save chetanraj/5252df03f6c082d8e9cbdcc0140acc5f to your computer and use it in GitHub Desktop.
getBookByName
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get books | |
const getBookByName = (name) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve({ name: 'Art of War', author: 'Sun Tsu', ISBN: 9780140439199 }); | |
}, 500); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment