Promises That Don’t Fail

Introduction

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

Sharing is caring!

Pavlos Papadopoulos

TechNews

TheLatestTechNews is a personal news blog that is covering Latest Technology News, Computers, Smartphones, Cameras, Digital Marketing, SEO Tips & Tricks

Leave a Reply

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

shares