Skip to content

Instantly share code, notes, and snippets.

@rmoskal
Last active December 5, 2017 21:47
Show Gist options
  • Save rmoskal/568c287037c8cd810a2962665b092294 to your computer and use it in GitHub Desktop.
Save rmoskal/568c287037c8cd810a2962665b092294 to your computer and use it in GitHub Desktop.
async_harmful_s5
function functionalWay2(color) {
fetch(color)
.then(inspect)
.then(JSON.parse)
.then(inspect)
.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