Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Architecture 1
- function callApi(x, y, z) {
- manipulate params
- manipulate params some more ...
- return fetch(...)
- .then(result => {
- if (result.status === ...) {
- handle status stuff
- }
- manipulate result
- manipulate result some more ...
- return manipulatedResult
- })
- }
Add Comment
Please, Sign In to add comment