then on Objects

added by JavaScript Kicks
8/5/2019 2:20:26 PM

577 Views

Promises were a revelation in JavaScript development, allowing us to enjoy async processing and avoid callback hell. Many new APIs like Battery API, Cache API, and others use the promise API. One fact you may not know is that you can add a then method to any object to make it Promise-like!


0 comments