1
|
'use strict';
|
2
|
|
3
|
Object.defineProperty(exports, "__esModule", {
|
4
|
value: true
|
5
|
});
|
6
|
exports.default = doParallel;
|
7
|
|
8
|
var _eachOf = require('../eachOf');
|
9
|
|
10
|
var _eachOf2 = _interopRequireDefault(_eachOf);
|
11
|
|
12
|
var _wrapAsync = require('./wrapAsync');
|
13
|
|
14
|
var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
|
15
|
|
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17
|
|
18
|
function doParallel(fn) {
|
19
|
return function (obj, iteratee, callback) {
|
20
|
return fn(_eachOf2.default, obj, (0, _wrapAsync2.default)(iteratee), callback);
|
21
|
};
|
22
|
}
|
23
|
module.exports = exports['default'];
|