You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
600 B

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