doipjs/node_modules/@ungap/promise-all-settled/README.md
Yarmo Mackenbach e996bc8023 Initial commit
2020-10-23 22:35:53 +02: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;