Sha256: 8eb4ec0078a9664c2a738f67107ab79aedd8e15ea7e5b876395d4c9e8ed3f504

Contents?: true

Size: 1.55 KB

Versions: 48

Compression:

Stored size: 1.55 KB

Contents

'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _doLimit = require('./internal/doLimit');

var _doLimit2 = _interopRequireDefault(_doLimit);

var _concatLimit = require('./concatLimit');

var _concatLimit2 = _interopRequireDefault(_concatLimit);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/**
 * Applies `iteratee` to each item in `coll`, concatenating the results. Returns
 * the concatenated list. The `iteratee`s are called in parallel, and the
 * results are concatenated as they return. There is no guarantee that the
 * results array will be returned in the original order of `coll` passed to the
 * `iteratee` function.
 *
 * @name concat
 * @static
 * @memberOf module:Collections
 * @method
 * @category Collection
 * @param {Array|Iterable|Object} coll - A collection to iterate over.
 * @param {AsyncFunction} iteratee - A function to apply to each item in `coll`,
 * which should use an array as its result. Invoked with (item, callback).
 * @param {Function} [callback(err)] - A callback which is called after all the
 * `iteratee` functions have finished, or an error occurs. Results is an array
 * containing the concatenated results of the `iteratee` function. Invoked with
 * (err, results).
 * @example
 *
 * async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
 *     // files is now a list of filenames that exist in the 3 directories
 * });
 */
exports.default = (0, _doLimit2.default)(_concatLimit2.default, Infinity);
module.exports = exports['default'];

Version data entries

48 entries across 46 versions & 11 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/async/concat.js
disco_app-0.18.0 test/dummy/node_modules/async/concat.js
disco_app-0.18.2 test/dummy/node_modules/async/concat.js
disco_app-0.16.1 test/dummy/node_modules/async/concat.js
disco_app-0.15.2 test/dummy/node_modules/async/concat.js
disco_app-0.18.4 test/dummy/node_modules/async/concat.js
disco_app-0.18.1 test/dummy/node_modules/async/concat.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/async/concat.js
disco_app-0.14.0 test/dummy/node_modules/async/concat.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/async/concat.js
tang-0.2.1 spec/tang_app/node_modules/async/concat.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/async/concat.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/async/concat.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/async/concat.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/async/concat.js
tang-0.2.0 spec/tang_app/node_modules/async/concat.js
tang-0.1.0 spec/tang_app/node_modules/async/concat.js
tang-0.0.9 spec/tang_app/node_modules/async/concat.js
enju_library-0.3.8 spec/dummy/node_modules/async/concat.js
ilog-0.4.1 node_modules/async/concat.js