CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
log.js41 linesDownload Raw Back to async
1'use strict';2 3Object.defineProperty(exports, "__esModule", {4    value: true5});6 7var _consoleFunc = require('./internal/consoleFunc.js');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 in15 * Node.js or in browsers that support `console.log` and `console.error` (such16 * as FF and Chrome). If multiple arguments are returned from the async17 * function, `console.log` is called on each argument in order.18 *19 * @name log20 * @static21 * @memberOf module:Utils22 * @method23 * @category Util24 * @param {AsyncFunction} function - The function you want to eventually apply25 * all arguments to.26 * @param {...*} arguments... - Any number of arguments to apply to the function.27 * @example28 *29 * // in a module30 * var hello = function(name, callback) {31 *     setTimeout(function() {32 *         callback(null, 'hello ' + name);33 *     }, 1000);34 * };35 *36 * // in the node repl37 * node> async.log(hello, 'world');38 * 'hello world'39 */40exports.default = (0, _consoleFunc2.default)('log');41module.exports = exports.default;
basant307/AI_Governance_Project · CoolFace