mirror of https://github.com/lukechilds/docs.git
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.
19 lines
530 B
19 lines
530 B
'use strict';
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = doParallelLimit;
|
|
|
|
var _eachOfLimit = require('./eachOfLimit');
|
|
|
|
var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);
|
|
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
|
|
function doParallelLimit(fn) {
|
|
return function (obj, limit, iteratee, callback) {
|
|
return fn((0, _eachOfLimit2.default)(limit), obj, iteratee, callback);
|
|
};
|
|
}
|
|
module.exports = exports['default'];
|