Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

123456789101112131415161718192021222324252627282930
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = _asyncMap;
  6. var _wrapAsync = require('./wrapAsync');
  7. var _wrapAsync2 = _interopRequireDefault(_wrapAsync);
  8. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  9. function _asyncMap(eachfn, arr, iteratee, callback) {
  10. arr = arr || [];
  11. var results = [];
  12. var counter = 0;
  13. var _iteratee = (0, _wrapAsync2.default)(iteratee);
  14. return eachfn(arr, (value, _, iterCb) => {
  15. var index = counter++;
  16. _iteratee(value, (err, v) => {
  17. results[index] = v;
  18. iterCb(err);
  19. });
  20. }, err => {
  21. callback(err, results);
  22. });
  23. }
  24. module.exports = exports['default'];