UI for Zipcoin Blue

everySeries.js 1.2KB

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