Created
November 16, 2016 11:35
-
-
Save zspecza/f4bf00e5c45be3943c3f329542de3731 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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