Use core-js cdn for some polyfills

This commit is contained in:
mike-000
2021-10-13 10:23:09 +01:00
parent a2291abf1d
commit 895749707f
3 changed files with 9 additions and 28 deletions

View File

@@ -1,21 +0,0 @@
if (typeof Promise !== 'undefined' && !Promise.allSettled && Array.from) {
Promise.allSettled =
function (promises) {
return Promise.all(
Array.from(
promises,
function (p) {
return p.then (
function (value) {
return {status: 'fulfilled', value: value};
}
).catch(
function (reason) {
return {status: 'rejected', reason: reason};
}
);
}
)
)
};
}