Skip to content

Instantly share code, notes, and snippets.

@zspecza
Created November 16, 2016 11:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zspecza/bf20b06683d86387c5191984e2d55cb4 to your computer and use it in GitHub Desktop.
Save zspecza/bf20b06683d86387c5191984e2d55cb4 to your computer and use it in GitHub Desktop.
findSomething()
.then(transformSomething)
.then(validateTransformed)
.then((validated) => console.log('data is valid:', validated))
.catch((error) => console.error(new Error(error))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment