UNPKG

@clickup/pg-microsharding

Version:
11 lines 388 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.promiseAllMap = promiseAllMap; const promiseAll_1 = require("./promiseAll"); /** * A syntax sugar for Promise.all(arr.map(...)). */ async function promiseAllMap(arr, func) { return (0, promiseAll_1.promiseAll)((await arr).map((e, idx) => func(e, idx))); } //# sourceMappingURL=promiseAllMap.js.map