Let's write a Promise polyfill
Everybody in this industry know the ancient wisdom for which it's better avoid reinventing the wheel. Anyway, that's often necessary to really understand how things work. I did this in the past, when I've written my event delegation library, and I'm doing this again, with my implementation of Promise. In this post, we're going to rewrite the code step by step. »