Last active
October 14, 2019 21:11
-
-
Save deepal/406a7cf765c876605949d51d5a245370 to your computer and use it in GitHub Desktop.
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
function processUsers() { | |
try { | |
const body = await client.get('http://example.com/users'); | |
const users = body.users || []; | |
// do something with users | |
} catch (err) { | |
// handle error | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment