schnee effeckt und fehler Korektur
This commit is contained in:
12
node_modules/p-map-series/index.js
generated
vendored
Normal file
12
node_modules/p-map-series/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
'use strict';
|
||||
const pReduce = require('p-reduce');
|
||||
|
||||
module.exports = (iterable, iterator) => {
|
||||
const ret = [];
|
||||
|
||||
return pReduce(iterable, (a, b, i) => {
|
||||
return Promise.resolve(iterator(b, i)).then(val => {
|
||||
ret.push(val);
|
||||
});
|
||||
}).then(() => ret);
|
||||
};
|
||||
Reference in New Issue
Block a user