Correction: 05:42 instead of if(index === - 1), we should maintain a count counter, and add 1 to it as we receive the response. Then we should check if count ===
Get code from Medium blog:
@awwfrontend/implementing-promise-all-polyfill-promise-javascript-8747ebe48140
This video explains the working in and how to implement its polyfill.
This video is part of video series on Promises. Implementing polyfill is one of the frequently asked interview questions
Follow me on
Instagram:
Twitter:
Medium: @awwfrontend