$
This commit is contained in:
26
node_modules/@ungap/promise-all-settled/README.md
generated
vendored
Normal file
26
node_modules/@ungap/promise-all-settled/README.md
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# Promise.allSettled
|
||||
|
||||
[](https://travis-ci.com/ungap/promise-all-settled) [](https://coveralls.io/github/ungap/promise-all-settled?branch=master) [](https://greenkeeper.io/) 
|
||||
|
||||
A cross platform [Promise.allSettled](https://github.com/tc39/proposal-promise-allSettled) polyfill.
|
||||
|
||||
* CDN global utility via https://unpkg.com/@ungap/promise-all-settled
|
||||
* ESM via `import allSettled from '@ungap/promise-all-settled'`
|
||||
* CJS via `const allSettled = require('@ungap/promise-all-settled')`
|
||||
|
||||
|
||||
### Example
|
||||
|
||||
```js
|
||||
const allSettled = require("@ungap/promise-all-settled");
|
||||
|
||||
// use it via call
|
||||
allSettled.call(Promise, []);
|
||||
|
||||
// or bind it:
|
||||
const $settled = allSettled.bind(Promise);
|
||||
|
||||
// or put it in the Promise class
|
||||
if (!Promise.allSettled)
|
||||
Promise.allSettled = allSettled;
|
||||
```
|
Reference in New Issue
Block a user