Skip to content

Instantly share code, notes, and snippets.

@rmoskal
Last active December 5, 2017 21:45
Show Gist options
  • Save rmoskal/3d69ac4a1991868130eaba0e7624ff76 to your computer and use it in GitHub Desktop.
Save rmoskal/3d69ac4a1991868130eaba0e7624ff76 to your computer and use it in GitHub Desktop.
async_harmful_s2
function functionalWay2(color) {
fetch(color)
.then(JSON.parse)
.then(transformFirst)
.then(sendToClient)
.then(sendResults => remotelog('log',sendResults))
.catch(err => remotelog('error', err))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment