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.

log.js 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _consoleFunc = require('./internal/consoleFunc');
  6. var _consoleFunc2 = _interopRequireDefault(_consoleFunc);
  7. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  8. /**
  9. * Logs the result of an `async` function to the `console`. Only works in
  10. * Node.js or in browsers that support `console.log` and `console.error` (such
  11. * as FF and Chrome). If multiple arguments are returned from the async
  12. * function, `console.log` is called on each argument in order.
  13. *
  14. * @name log
  15. * @static
  16. * @memberOf module:Utils
  17. * @method
  18. * @category Util
  19. * @param {AsyncFunction} function - The function you want to eventually apply
  20. * all arguments to.
  21. * @param {...*} arguments... - Any number of arguments to apply to the function.
  22. * @example
  23. *
  24. * // in a module
  25. * var hello = function(name, callback) {
  26. * setTimeout(function() {
  27. * callback(null, 'hello ' + name);
  28. * }, 1000);
  29. * };
  30. *
  31. * // in the node repl
  32. * node> async.log(hello, 'world');
  33. * 'hello world'
  34. */
  35. exports.default = (0, _consoleFunc2.default)('log');
  36. module.exports = exports['default'];