Skip to content

Instantly share code, notes, and snippets.

@chetanraj
Created August 15, 2021 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chetanraj/3abdd613a0b1758ee9af6e2ce3544044 to your computer and use it in GitHub Desktop.
Save chetanraj/3abdd613a0b1758ee9af6e2ce3544044 to your computer and use it in GitHub Desktop.
checkIfBookExists
// 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