'use strict';12Object.defineProperty(exports, "__esModule", {3value: true4});56var _createTester = require('./internal/createTester.js');78var _createTester2 = _interopRequireDefault(_createTester);910var _eachOfLimit = require('./internal/eachOfLimit.js');1112var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit);1314var _awaitify = require('./internal/awaitify.js');1516var _awaitify2 = _interopRequireDefault(_awaitify);1718function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }1920/**21* The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time.22*23* @name someLimit24* @static25* @memberOf module:Collections26* @method27* @see [async.some]{@link module:Collections.some}28* @alias anyLimit29* @category Collection30* @param {Array|Iterable|AsyncIterable|Object} coll - A collection to iterate over.31* @param {number} limit - The maximum number of async operations at a time.32* @param {AsyncFunction} iteratee - An async truth test to apply to each item33* in the collections in parallel.34* The iteratee should complete with a boolean `result` value.35* Invoked with (item, callback).36* @param {Function} [callback] - A callback which is called as soon as any37* iteratee returns `true`, or after all the iteratee functions have finished.38* Result will be either `true` or `false` depending on the values of the async39* tests. Invoked with (err, result).40* @returns {Promise} a promise, if no callback provided41*/42function someLimit(coll, limit, iteratee, callback) {43return (0, _createTester2.default)(Boolean, res => res)((0, _eachOfLimit2.default)(limit), coll, iteratee, callback);44}45exports.default = (0, _awaitify2.default)(someLimit, 4);46module.exports = exports['default'];4748