4
0
Fork 0
mirror of https://github.com/actions/setup-node.git synced 2025-11-11 23:03:50 +00:00
setup-node/node_modules/p-each-series/index.js
eric sciple 422b9fdb15 .
2020-01-24 12:21:24 -05:00

4 lines
162 B
JavaScript

'use strict';
const pReduce = require('p-reduce');
module.exports = (iterable, iterator) => pReduce(iterable, (a, b, i) => iterator(b, i)).then(() => iterable);