Security update to Drupal 8.4.6
[yaffs-website] / node_modules / grunt-uncss / node_modules / async / everySeries.js
1 'use strict';
2
3 Object.defineProperty(exports, "__esModule", {
4   value: true
5 });
6
7 var _everyLimit = require('./everyLimit');
8
9 var _everyLimit2 = _interopRequireDefault(_everyLimit);
10
11 var _doLimit = require('./internal/doLimit');
12
13 var _doLimit2 = _interopRequireDefault(_doLimit);
14
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17 /**
18  * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time.
19  *
20  * @name everySeries
21  * @static
22  * @memberOf module:Collections
23  * @method
24  * @see [async.every]{@link module:Collections.every}
25  * @alias allSeries
26  * @category Collection
27  * @param {Array|Iterable|Object} coll - A collection to iterate over.
28  * @param {Function} iteratee - A truth test to apply to each item in the
29  * collection in parallel. The iteratee is passed a `callback(err, truthValue)`
30  * which must be called with a  boolean argument once it has completed. Invoked
31  * with (item, callback).
32  * @param {Function} [callback] - A callback which is called after all the
33  * `iteratee` functions have finished. Result will be either `true` or `false`
34  * depending on the values of the async tests. Invoked with (err, result).
35  */
36 exports.default = (0, _doLimit2.default)(_everyLimit2.default, 1);
37 module.exports = exports['default'];