summaryrefslogtreecommitdiff
path: root/lib/internal/doParallel.js
blob: 2b76b6837d5d53788b7c17d02aa88eb02586680a (plain)
1
2
3
4
5
6
import eachOf from '../eachOf';
import wrapAsync from './wrapAsync';

export default function doParallel(fn) {
    return (obj, iteratee, cb) => fn(eachOf, obj, wrapAsync(iteratee), cb);
}