UNPKG

promise-ext-settled

Version:
2 lines 720 B
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.promiseSettled=e():t.promiseSettled=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var r=n[o]={exports:{},id:o,loaded:!1};return t[o].call(r.exports,r,r.exports,e),r.loaded=!0,r.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e){function n(t,e){var n=t.map(function(t){return t.then(function(t){return{value:t,status:!0}},function(t){return{value:t,status:!1}}).then(function(t){return"function"==typeof e&&e(t),t})});return Promise.all(n)}t.exports=n}])}); //# sourceMappingURL=promiseSettled.min.js.map