Ohm-Management - Projektarbeit B-ME
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.

mapValuesSeries.js 1.3KB

12345678910111213141516171819202122232425262728293031323334353637
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _mapValuesLimit = require('./mapValuesLimit');
  6. var _mapValuesLimit2 = _interopRequireDefault(_mapValuesLimit);
  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 [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time.
  12. *
  13. * @name mapValuesSeries
  14. * @static
  15. * @memberOf module:Collections
  16. * @method
  17. * @see [async.mapValues]{@link module:Collections.mapValues}
  18. * @category Collection
  19. * @param {Object} obj - A collection to iterate over.
  20. * @param {AsyncFunction} iteratee - A function to apply to each value and key
  21. * in `coll`.
  22. * The iteratee should complete with the transformed value as its result.
  23. * Invoked with (value, key, callback).
  24. * @param {Function} [callback] - A callback which is called when all `iteratee`
  25. * functions have finished, or an error occurs. `result` is a new object consisting
  26. * of each key from `obj`, with each transformed value on the right-hand side.
  27. * Invoked with (err, result).
  28. */
  29. exports.default = (0, _doLimit2.default)(_mapValuesLimit2.default, 1);
  30. module.exports = exports['default'];