Package Exports
- @ungap/promise-all-settled
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@ungap/promise-all-settled) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Promise.allSettled
A cross platform 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
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;