UNPKG

nyks

Version:

nodejs exupery style

14 lines (9 loc) 281 B
"use strict"; const eachLimit = require('./eachLimit'); module.exports = async function(series, n, thunk, ctx) { var res = {}; await eachLimit(Object.keys(series), n, async function(k) { res[k] = await thunk.call(ctx || this, series[k], k); }, ctx); return res; };