1×
Become a member
to unlock all features
Autoplay

    Convert a Promise.all Result to an Object with Ramda's zip and zipObj

    ramdaRamda

    In this lesson, we'll use Promise.all to get an array that contains the resolved values from multiple promises. Then we'll see how we can use Ramda to convert that array of values into a single object using zip with fromPairs. Then we'll refactor to use zipObj.