parcoursup/node_modules/@ungap/promise-all-settled/README.md
lalBi94 7bc56c09b5 $
2023-03-05 13:23:23 +01:00

1.1 KiB

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;