Created
August 15, 2021 12:34
-
-
Save chetanraj/3abdd613a0b1758ee9af6e2ce3544044 to your computer and use it in GitHub Desktop.
checkIfBookExists
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
// check if that book exists | |
checkIfBookExists = (ISBN) => { | |
return new Promise((resolve, reject) => { | |
setTimeout(() => { | |
resolve({ stock: 10, ISBN: 9780140439199 }); | |
}, 500); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment