Security update to Drupal 8.4.6
[yaffs-website] / node_modules / grunt-uncss / node_modules / async / concat.js
1 'use strict';
2
3 Object.defineProperty(exports, "__esModule", {
4   value: true
5 });
6
7 var _concat = require('./internal/concat');
8
9 var _concat2 = _interopRequireDefault(_concat);
10
11 var _doParallel = require('./internal/doParallel');
12
13 var _doParallel2 = _interopRequireDefault(_doParallel);
14
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17 /**
18  * Applies `iteratee` to each item in `coll`, concatenating the results. Returns
19  * the concatenated list. The `iteratee`s are called in parallel, and the
20  * results are concatenated as they return. There is no guarantee that the
21  * results array will be returned in the original order of `coll` passed to the
22  * `iteratee` function.
23  *
24  * @name concat
25  * @static
26  * @memberOf module:Collections
27  * @method
28  * @category Collection
29  * @param {Array|Iterable|Object} coll - A collection to iterate over.
30  * @param {Function} iteratee - A function to apply to each item in `coll`.
31  * The iteratee is passed a `callback(err, results)` which must be called once
32  * it has completed with an error (which can be `null`) and an array of results.
33  * Invoked with (item, callback).
34  * @param {Function} [callback(err)] - A callback which is called after all the
35  * `iteratee` functions have finished, or an error occurs. Results is an array
36  * containing the concatenated results of the `iteratee` function. Invoked with
37  * (err, results).
38  * @example
39  *
40  * async.concat(['dir1','dir2','dir3'], fs.readdir, function(err, files) {
41  *     // files is now a list of filenames that exist in the 3 directories
42  * });
43  */
44 exports.default = (0, _doParallel2.default)(_concat2.default);
45 module.exports = exports['default'];