Skip to content

Instantly share code, notes, and snippets.

@zspecza
Created November 16, 2016 11:40
Show Gist options
  • Save zspecza/62fea220c049dc06b5c962cc6623ecc9 to your computer and use it in GitHub Desktop.
Save zspecza/62fea220c049dc06b5c962cc6623ecc9 to your computer and use it in GitHub Desktop.
findSomething()
.then((something) => transformSomething(something))
.then((transformed) => validateTransformed(transformed))
.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