A Map To Promise Then

A functional approach to promise.then

Omer Dolev
Apr 12, 2020 · 8 min read
Photo by N. on Unsplash

Promises are a fundamental building block in almost every javascript application. Even with the emergence of modern syntax like async/await, understanding the workings of promises is the key to writing async code effectively.

I believe the most confusing part, and the most important to understand, is the promise’s then method. It is the…