Function that work with Array or Object of promises, how Promise.all
npm install universal-promise-allThe Function allows you to work with Promise.all, how with forkJoin from rxjs.
universal-promise-all supports not only arrays, but also objects.
---
javascript
import universalPromiseAll from "universalPromiseAll";const promiseObj = {
bol: Promise.resolve(true),
num: Promise.resolve(10),
};
universalPromiseAll(promiseObj).then(console.log); // {bol: true, num: 10}
``[unlicense]: http://unlicense.org/