Skip to content

Instantly share code, notes, and snippets.

@zspecza
Last active November 16, 2016 15:34
Show Gist options
  • Save zspecza/ef6410f6f51a2ebf84c06de83b3570f5 to your computer and use it in GitHub Desktop.
Save zspecza/ef6410f6f51a2ebf84c06de83b3570f5 to your computer and use it in GitHub Desktop.
const getValidatedTransformation = sequentialCallback(
findSomething,
transformSomething,
validateTransformed
)
getValidatedTransformation((error, validated) => {
if (error) {
console.error(new Error(error))
} else {
console.log('data is valid:', validated)
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment