3 Object.defineProperty(exports, "__esModule", {
7 var _rest = require('./internal/rest');
9 var _rest2 = _interopRequireDefault(_rest);
11 var _initialParams = require('./internal/initialParams');
13 var _initialParams2 = _interopRequireDefault(_initialParams);
15 function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18 * Returns a function that when called, calls-back with the values provided.
19 * Useful as the first function in a [`waterfall`]{@link module:ControlFlow.waterfall}, or for plugging values in to
20 * [`auto`]{@link module:ControlFlow.auto}.
24 * @memberOf module:Utils
27 * @param {...*} arguments... - Any number of arguments to automatically invoke
29 * @returns {Function} Returns a function that when invoked, automatically
30 * invokes the callback with the previous given arguments.
35 * function (value, next) {
42 * async.constant(filename, "utf8"),
44 * function (fileData, next) {
51 * hostname: async.constant("https://server.net/"),
53 * launchServer: ["hostname", "port", function (options, cb) {
54 * startServer(options, cb);
59 exports.default = (0, _rest2.default)(function (values) {
60 var args = [null].concat(values);
61 return (0, _initialParams2.default)(function (ignoredArgs, callback) {
62 return callback.apply(this, args);
65 module.exports = exports['default'];