source: trip-planner-front/node_modules/async/log.js@ 571e0df

Last change on this file since 571e0df was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

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