source: trip-planner-front/node_modules/async/dir.js@ bdd6491

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

initial commit

  • Property mode set to 100644
File size: 1.3 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]{@link AsyncFunction} to the
15 * `console` using `console.dir` to display the properties of the resulting object.
16 * Only works in Node.js or in browsers that support `console.dir` and
17 * `console.error` (such as FF and Chrome).
18 * If multiple arguments are returned from the async function,
19 * `console.dir` is called on each argument in order.
20 *
21 * @name dir
22 * @static
23 * @memberOf module:Utils
24 * @method
25 * @category Util
26 * @param {AsyncFunction} function - The function you want to eventually apply
27 * all arguments to.
28 * @param {...*} arguments... - Any number of arguments to apply to the function.
29 * @example
30 *
31 * // in a module
32 * var hello = function(name, callback) {
33 * setTimeout(function() {
34 * callback(null, {hello: name});
35 * }, 1000);
36 * };
37 *
38 * // in the node repl
39 * node> async.dir(hello, 'world');
40 * {hello: 'world'}
41 */
42exports.default = (0, _consoleFunc2.default)('dir');
43module.exports = exports['default'];
Note: See TracBrowser for help on using the repository browser.