Promises That Don’t Fail


My co-worker, Jason Kaiser, created a way for Promises not to fail, called sureThing. It has 3 benefits to your code that we’ll illustrate below, including prior art in other programming languages so you know this isn’t some made-up concept.

What Is a SureThing?

A sureThing is a function that wraps a Promise to ensure it never fails. The return value given to the .then is an object, letting you…
DZone Web Dev Zone

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.