Skip to content

Instantly share code, notes, and snippets.

@Xedii Xedii/combination-async.js Secret

Created Dec 28, 2018
Embed
What would you like to do?
const makeRequest = async () => {
try {
const res = await requestMock();
return res.data.arr.map(test => test + 2);
} catch (err) {
console.log(err)
}
}
makeRequest().then(res => {
// do something
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.