RxJS: How to Use Lettable Operators with Promises

Nicholas Jamieson
2 min readOct 3, 2017
Photo by Gary Bendig on Unsplash

With the release of RxJS 5.5.0-beta.5, toPromise is now attached to Observable.prototype, rendering this look at its ‘lettable’ variant a historical curiosity.

Converting observables to promises is an antipattern. Unless you are integrating observables with a promise-based API, there is no reason to convert an observable into a promise.

--

--

Nicholas Jamieson

RxJS core team member; front-end developer; mentor; speaker; open-source contributor