tree: bfa65fcc713129d884701c06b5c96c5c90c2a201 [path history] [tgz]
  1. cjs/
  2. esm/
  3. index.js
  4. LICENSE
  5. min.js
  6. package.json
  7. README.md
node_modules/@ungap/promise-all-settled/README.md

Promise.allSettled

Build Status Coverage Status Greenkeeper badge WebReflection status

A cross platform Promise.allSettled polyfill.

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;