Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@ungap/promise-all-settled

ungap10.1mISC1.1.2

A cross platform Promise.allSettled polyfill

Promise, allSettled, polyfill, utility, ungap

readme

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;