'use strict';12Object.defineProperty(exports, "__esModule", {3value: true4});56var _applyEach = require('./internal/applyEach.js');78var _applyEach2 = _interopRequireDefault(_applyEach);910var _map = require('./map.js');1112var _map2 = _interopRequireDefault(_map);1314function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }1516/**17* Applies the provided arguments to each function in the array, calling18* `callback` after all functions have completed. If you only provide the first19* argument, `fns`, then it will return a function which lets you pass in the20* arguments as if it were a single function call. If more arguments are21* provided, `callback` is required while `args` is still optional. The results22* for each of the applied async functions are passed to the final callback23* as an array.24*25* @name applyEach26* @static27* @memberOf module:ControlFlow28* @method29* @category Control Flow30* @param {Array|Iterable|AsyncIterable|Object} fns - A collection of {@link AsyncFunction}s31* to all call with the same arguments32* @param {...*} [args] - any number of separate arguments to pass to the33* function.34* @param {Function} [callback] - the final argument should be the callback,35* called when all functions have completed processing.36* @returns {AsyncFunction} - Returns a function that takes no args other than37* an optional callback, that is the result of applying the `args` to each38* of the functions.39* @example40*41* const appliedFn = async.applyEach([enableSearch, updateSchema], 'bucket')42*43* appliedFn((err, results) => {44* // results[0] is the results for `enableSearch`45* // results[1] is the results for `updateSchema`46* });47*48* // partial application example:49* async.each(50* buckets,51* async (bucket) => async.applyEach([enableSearch, updateSchema], bucket)(),52* callback53* );54*/55exports.default = (0, _applyEach2.default)(_map2.default);56module.exports = exports['default'];5758