Skip to content

Instantly share code, notes, and snippets.

@zspecza
Created November 16, 2016 11:35
Show Gist options
  • Save zspecza/f4bf00e5c45be3943c3f329542de3731 to your computer and use it in GitHub Desktop.
Save zspecza/f4bf00e5c45be3943c3f329542de3731 to your computer and use it in GitHub Desktop.
findSomething((error, something) => {
if (error) {
throw new Error(error)
}
transformSomething(something, (error, transformed) => {
if (error) {
throw new Error(error)
}
validateTransformed(transformed, (error, validated) => {
if (error) {
throw new Error(error)
}
console.log('data is valid:', validated)
})
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment