UNPKG

@schamane/small-graphql-mongoose-middleware

Version:

![Check Code](https://github.com/schamane/small-graphql-mongoose-middleware/workflows/Check%20Code/badge.svg)

10 lines 363 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.serialExec = void 0; const serialExec = (tasks, fn) => tasks.reduce(async (promise, task) => { const result = await promise; const taskResult = await fn(task); return [...result, taskResult]; }, []); exports.serialExec = serialExec; //# sourceMappingURL=async.js.map