|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
|---|
| 4 | value: true
|
|---|
| 5 | });
|
|---|
| 6 |
|
|---|
| 7 | var _consoleFunc = require('./internal/consoleFunc.js');
|
|---|
| 8 |
|
|---|
| 9 | var _consoleFunc2 = _interopRequireDefault(_consoleFunc);
|
|---|
| 10 |
|
|---|
| 11 | function _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 | */
|
|---|
| 40 | exports.default = (0, _consoleFunc2.default)('log');
|
|---|
| 41 | module.exports = exports.default; |
|---|
Note:
See
TracBrowser
for help on using the repository browser.