๐ Implementing a Polyfill for Promise.any in JavaScript
Promise.any is a useful method in JavaScript that takes an array of promises and resolves as soon as any one of them fulfills. If all promises reject, it returns an AggregateError.
Letโs break down how we can implement our own polyfill for Promise.an...
anmol-kansal.hashnode.dev2 min read