You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.1 KiB

4 years ago
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _rejectLimit = require('./rejectLimit');
  6. var _rejectLimit2 = _interopRequireDefault(_rejectLimit);
  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 [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time.
  12. *
  13. * @name rejectSeries
  14. * @static
  15. * @memberOf module:Collections
  16. * @method
  17. * @see [async.reject]{@link module:Collections.reject}
  18. * @category Collection
  19. * @param {Array|Iterable|Object} coll - A collection to iterate over.
  20. * @param {Function} iteratee - An async truth test to apply to each item in
  21. * `coll`.
  22. * The should complete with a boolean value as its `result`.
  23. * Invoked with (item, callback).
  24. * @param {Function} [callback] - A callback which is called after all the
  25. * `iteratee` functions have finished. Invoked with (err, results).
  26. */
  27. exports.default = (0, _doLimit2.default)(_rejectLimit2.default, 1);
  28. module.exports = exports['default'];