2.2.1 • Published 3 years ago

universal-promise-all v2.2.1

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

The Function allows you to work with Promise.all, how with forkJoin from rxjs. universal-promise-all supports not only arrays, but also objects.


Requirements

universal-promise-all (target ES5) use arrow function and Object.(entries/fromEntries). Therefore, in some cases, es2019 polyfills are necessary.

Usage example (Typescript):

import universalPromiseAll from "universalPromiseAll";

const promiseObj = {
  bol: Promise.resolve(true),
  num: Promise.resolve(10),
};

universalPromiseAll(promiseObj).then(console.log); // {bol: true, num: 10}

License

Public domain Unlicense

2.2.1

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.0

3 years ago